瀏覽代碼

fixed ui form edit json - html quote bug

Piotr Labudda 7 年之前
父節點
當前提交
a63d4d8c54
共有 1 個文件被更改,包括 2 次插入2 次删除
  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%;';