增加ua_htmlspecialchars_decode函数兼容PHP8.1

This commit is contained in:
2022-10-11 19:32:40 +08:00
parent 1555b3122c
commit 1796c49740
3 changed files with 15 additions and 2 deletions

View File

@@ -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)
{