Browse Source

fixed ui form edit json - html quote bug

Piotr Labudda 7 năm trước cách đây
mục cha
commit
a63d4d8c54
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      SE/se-lib/UI.php

+ 2 - 2
SE/se-lib/UI.php

@@ -538,7 +538,7 @@ class UI {
 
 			if ($maxLength > 255) {// Fix for long varchar - use textarea
 				$html->tag = 'textarea';
-				$html->childrens[] = htmlspecialchars($fValue);
+				$html->childrens[] = $fValue;
 				$html->attrs['rows'] = '3';
 				unset($html->attrs['type']);
 				unset($html->attrs['value']);
@@ -628,7 +628,7 @@ class UI {
 			|| substr($colType['type'], 0, 8) == 'longtext'
 		) {
 			$html->tag = 'textarea';
-			$html->childrens[] = htmlspecialchars($fValue);
+			$html->childrens[] = $fValue;
 			if (isset($params['widthClass'])) {
 				if ($params['widthClass'] == 'inside-modal') {
 					$html->attrs['style'] = 'width:98%;';