mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
增加ua_htmlspecialchars_decode函数兼容PHP8.1
This commit is contained in:
@@ -246,6 +246,19 @@ if (!function_exists('ua_htmlentities')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('htmlspecialchars_decode')) {
|
||||
function ua_htmlspecialchars_decode($string, $flag = ENT_QUOTES | ENT_SUBSTITUTE)
|
||||
{
|
||||
|
||||
if (is_null($string)) {
|
||||
$string = '';
|
||||
}
|
||||
|
||||
return ua_htmlspecialchars_decode($string, $flag);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function build_upload_url($url, $upload_type = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user