Browse Source

优化SelectPage编码输出

Karson 1 year ago
parent
commit
77300998fc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      application/common/controller/Backend.php

+ 1 - 0
application/common/controller/Backend.php

@@ -577,6 +577,7 @@ class Backend extends Controller
                     $result = array_intersect_key(($item instanceof Model ? $item->toArray() : (array)$item), array_flip($fields));
                 }
                 $result['pid'] = isset($item['pid']) ? $item['pid'] : (isset($item['parent_id']) ? $item['parent_id'] : 0);
+                $result = array_map("htmlentities", $result);
                 $list[] = $result;
             }
             if ($istree && !$primaryvalue) {