mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Fixed #8544 - escaping on maintenance notes
This commit is contained in:
parent
75b8c3455c
commit
a87e615e7f
|
@ -100,9 +100,9 @@ class AssetMaintenancesController extends Controller
|
||||||
$assetMaintenance = new AssetMaintenance();
|
$assetMaintenance = new AssetMaintenance();
|
||||||
$assetMaintenance->supplier_id = $request->input('supplier_id');
|
$assetMaintenance->supplier_id = $request->input('supplier_id');
|
||||||
$assetMaintenance->is_warranty = $request->input('is_warranty');
|
$assetMaintenance->is_warranty = $request->input('is_warranty');
|
||||||
$assetMaintenance->cost = e($request->input('cost'));
|
$assetMaintenance->cost = $request->input('cost');
|
||||||
$assetMaintenance->notes = e($request->input('notes'));
|
$assetMaintenance->notes = $request->input('notes');
|
||||||
$asset = Asset::find(e($request->input('asset_id')));
|
$asset = Asset::find($request->input('asset_id'));
|
||||||
|
|
||||||
if ((!Company::isCurrentUserHasAccess($asset)) && ($asset!=null)) {
|
if ((!Company::isCurrentUserHasAccess($asset)) && ($asset!=null)) {
|
||||||
return static::getInsufficientPermissionsRedirect();
|
return static::getInsufficientPermissionsRedirect();
|
||||||
|
|
Loading…
Reference in a new issue