mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
兼容php8.1
This commit is contained in:
@@ -234,6 +234,18 @@ if (!function_exists('ua_htmlspecialchars')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ua_htmlentities')) {
|
||||
function ua_htmlentities($string)
|
||||
{
|
||||
|
||||
if (is_null($string)) {
|
||||
$string = '';
|
||||
}
|
||||
|
||||
return htmlentities($string);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function build_upload_url($url, $upload_type = null)
|
||||
{
|
||||
|
||||
@@ -30,5 +30,6 @@ return [
|
||||
'tpl_replace_string' => [
|
||||
'__STATIC__' => Env::get('adminsystem.static_path', '/static'),
|
||||
'__JS__' => '/static/javascript',
|
||||
]
|
||||
],
|
||||
'default_filter' => 'ua_htmlentities', // 默认过滤方法 用于普通标签输出
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user