Escape the asset tag before passing it to the view

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-11-22 23:20:47 +00:00
parent bb0ba0bebe
commit 1307ef19cf

View file

@ -205,8 +205,9 @@ class AssetsController extends Controller
}
if ($success) {
\Log::debug(e($asset->asset_tag));
return redirect()->route('hardware.index')
->with('success-unescaped', trans('admin/hardware/message.create.success_linked', ['link' => route('hardware.show', $asset->id), 'id', 'tag' => $asset->asset_tag]));
->with('success-unescaped', trans('admin/hardware/message.create.success_linked', ['link' => route('hardware.show', $asset->id), 'id', 'tag' => e($asset->asset_tag)]));
}