diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php index 62cd0624a9fb..fe7d6c99df7d 100644 --- a/app/Http/Requests/Request.php +++ b/app/Http/Requests/Request.php @@ -198,6 +198,18 @@ class Request extends FormRequest } } + if(isset($input['public_notes'])) + $input['public_notes'] = str_replace("company()->settings->currency_id; } + if (isset($input['name'])) { + $input['name'] = strip_tags($input['name']); + } + $input = $this->decodePrimaryKeys($input); $this->replace($input); diff --git a/app/Http/Requests/Vendor/UpdateVendorRequest.php b/app/Http/Requests/Vendor/UpdateVendorRequest.php index 2f49179f7ba6..bc7ec08f3ca5 100644 --- a/app/Http/Requests/Vendor/UpdateVendorRequest.php +++ b/app/Http/Requests/Vendor/UpdateVendorRequest.php @@ -92,8 +92,8 @@ class UpdateVendorRequest extends Request { $input = $this->all(); - if (array_key_exists('assigned_user_id', $input) && is_string($input['assigned_user_id'])) { - $input['assigned_user_id'] = $this->decodePrimaryKey($input['assigned_user_id']); + if (isset($input['name'])) { + $input['name'] = strip_tags($input['name']); } if (array_key_exists('country_id', $input) && is_null($input['country_id'])) { diff --git a/app/Utils/Traits/CleanLineItems.php b/app/Utils/Traits/CleanLineItems.php index 2a734b106c90..bf144823864b 100644 --- a/app/Utils/Traits/CleanLineItems.php +++ b/app/Utils/Traits/CleanLineItems.php @@ -74,6 +74,12 @@ trait CleanLineItems } + if(isset($item['notes'])) + $item['notes'] = str_replace("
- +

{!! $product['notes'] !!}

@if($show_quantity) @@ -170,7 +170,7 @@ span {

- {!! html_entity_decode($entity->public_notes) !!} + {!! html_entity_decode(e($entity->public_notes)) !!}