From a87e615e7fd1dd22907311f5d13686fbdad284b4 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 Nov 2020 23:55:16 -0800 Subject: [PATCH] Fixed #8544 - escaping on maintenance notes --- app/Http/Controllers/AssetMaintenancesController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/AssetMaintenancesController.php b/app/Http/Controllers/AssetMaintenancesController.php index b3f8482f1b..d05b190ba7 100644 --- a/app/Http/Controllers/AssetMaintenancesController.php +++ b/app/Http/Controllers/AssetMaintenancesController.php @@ -100,9 +100,9 @@ class AssetMaintenancesController extends Controller $assetMaintenance = new AssetMaintenance(); $assetMaintenance->supplier_id = $request->input('supplier_id'); $assetMaintenance->is_warranty = $request->input('is_warranty'); - $assetMaintenance->cost = e($request->input('cost')); - $assetMaintenance->notes = e($request->input('notes')); - $asset = Asset::find(e($request->input('asset_id'))); + $assetMaintenance->cost = $request->input('cost'); + $assetMaintenance->notes = $request->input('notes'); + $asset = Asset::find($request->input('asset_id')); if ((!Company::isCurrentUserHasAccess($asset)) && ($asset!=null)) { return static::getInsufficientPermissionsRedirect();