lizhen_gitee пре 4 месеци
родитељ
комит
2c7ef7612e
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      thinkphp/tpl/think_exception.tpl

+ 2 - 1
thinkphp/tpl/think_exception.tpl

@@ -68,7 +68,8 @@
                         break;
                 }
 
-                $result[] = is_int($key) ? $value : "'{$key}' => {$value}";
+                {*$result[] = is_int($key) ? $value : "'{$key}' => {$value}";*}
+                $result[] = is_int($key) ? $value : sprintf('\'%s\' => %s', htmlentities($key), $value);
             }
 
             return implode(', ', $result);