A free open source IT asset/license management system
Escape the asset tag before passing it to the view
snipe1307ef19cf17
diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.phpindex aa7d182ff6..96933855fb 100755--- a/app/Http/Controllers/Assets/AssetsController.php+++ b/app/Http/Controllers/Assets/AssetsController.php@@ -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)]));}