From 6fc222a6486099780ba2b7bd0f98e678c704f77b Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 13 May 2022 05:45:00 -0700 Subject: [PATCH] Fixed #11014 - Removed double escaping on custom fields Signed-off-by: snipe --- app/Http/Controllers/Assets/AssetsController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 28ac51be13..4b1a7f1781 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -168,9 +168,9 @@ class AssetsController extends Controller if ($field->field_encrypted == '1') { if (Gate::allows('admin')) { if (is_array($request->input($field->convertUnicodeDbSlug()))) { - $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt(e(implode(', ', $request->input($field->convertUnicodeDbSlug())))); + $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt(implode(', ', $request->input($field->convertUnicodeDbSlug()))); } else { - $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt(e($request->input($field->convertUnicodeDbSlug()))); + $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt($request->input($field->convertUnicodeDbSlug())); } } } else { @@ -344,9 +344,9 @@ class AssetsController extends Controller if ($field->field_encrypted == '1') { if (Gate::allows('admin')) { if (is_array($request->input($field->convertUnicodeDbSlug()))) { - $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt(e(implode(', ', $request->input($field->convertUnicodeDbSlug())))); + $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt(implode(', ', $request->input($field->convertUnicodeDbSlug()))); } else { - $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt(e($request->input($field->convertUnicodeDbSlug()))); + $asset->{$field->convertUnicodeDbSlug()} = \Crypt::encrypt($request->input($field->convertUnicodeDbSlug())); } } } else {