Skip to content

Commit

Permalink
Fix Service Template XSS (#14659)
Browse files Browse the repository at this point in the history
Reported via huntr.dev by @Vautia
  • Loading branch information
murrant committed Nov 20, 2022
1 parent 4196774 commit b7b037b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ServiceTemplateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function destroy(ServiceTemplate $template)
Service::where('service_template_id', $template->id)->delete();
$template->delete();

$msg = __('Service Template :name deleted, Services removed', ['name' => $template->name]);
$msg = __('Service Template :name deleted, Services removed', ['name' => htmlentities($template->name)]);

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

0 comments on commit b7b037b

Please sign in to comment.