mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修复调试模式下 $key 未编码导致的异常页面XSS问题
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
$result[] = is_int($key) ? $value : "'{$key}' => {$value}";
|
||||
$result[] = is_int($key) ? $value : sprintf('\'%s\' => %s', htmlentities($key), $value);
|
||||
}
|
||||
|
||||
return implode(', ', $result);
|
||||
|
||||
Reference in New Issue
Block a user