Index: branches/5.3.x/core/kernel/utility/formatters/upload_formatter.php =================================================================== diff -u -N -r15974 -r16111 --- branches/5.3.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 15974) +++ branches/5.3.x/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 16111) @@ -1,6 +1,6 @@ Application->isAdmin ) { - // this allows to revert kUtil::escape() call for each field submitted on front-end - $value = is_array($value) ? array_map('htmlspecialchars_decode', $value) : htmlspecialchars_decode($value); - } - + $value = $this->Application->HttpQuery->unescapeRequestVariable($value); $options = $object->GetFieldOptions($field_name); if ( getArrayValue($options, 'upload_dir') ) { @@ -458,7 +454,7 @@ try { return $image_helper->ResizeImage($file_path, $format); } - catch ( \RuntimeException $e ) { + catch ( RuntimeException $e ) { // error, during image resize -> return empty string return ''; } @@ -628,4 +624,4 @@ return parent::GetFormatted($value, $field_name, $object, $format); } -} \ No newline at end of file +}