Browse Source

修复tip内容包含双引号时显示不全的问题

Chrisleung 6 years ago
parent
commit
a8291db80d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/admin/controller/general/Config.php

+ 1 - 0
application/admin/controller/general/Config.php

@@ -51,6 +51,7 @@ class Config extends Backend
                 $value['value'] = explode(',', $value['value']);
                 $value['value'] = explode(',', $value['value']);
             }
             }
             $value['content'] = json_decode($value['content'], TRUE);
             $value['content'] = json_decode($value['content'], TRUE);
+			$value['tip'] = htmlspecialchars($value['tip']);
             $siteList[$v['group']]['list'][] = $value;
             $siteList[$v['group']]['list'][] = $value;
         }
         }
         $index = 0;
         $index = 0;