Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix XSS when deleting device and port groups
  • Loading branch information
murrant committed Oct 17, 2022
1 parent d372844 commit 8383376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/DeviceGroupController.php
Expand Up @@ -182,7 +182,7 @@ public function destroy(DeviceGroup $deviceGroup)
}
$deviceGroup->delete();

$msg = __('Device Group :name deleted', ['name' => $deviceGroup->name]);
$msg = __('Device Group :name deleted', ['name' => htmlentities($deviceGroup->name)]);

return response($msg, 200);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/PortGroupController.php
Expand Up @@ -110,7 +110,7 @@ public function destroy(PortGroup $portGroup)
{
$portGroup->delete();

$msg = __('Port Group :name deleted', ['name' => $portGroup->name]);
$msg = __('Port Group :name deleted', ['name' => htmlentities($portGroup->name)]);

return response($msg, 200);
}
Expand Down

0 comments on commit 8383376

Please sign in to comment.