mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-21 13:09:41 +01:00
functions.php: fix null parameter
This commit is contained in:
parent
49d815c2ee
commit
ed05049777
@ -2276,7 +2276,7 @@ function defined_flags_accumulate($desired_flags) {
|
|||||||
|
|
||||||
function utf8tohtml($utf8) {
|
function utf8tohtml($utf8) {
|
||||||
$flags = defined_flags_accumulate(['ENT_NOQUOTES', 'ENT_SUBSTITUTE', 'ENT_DISALLOWED']);
|
$flags = defined_flags_accumulate(['ENT_NOQUOTES', 'ENT_SUBSTITUTE', 'ENT_DISALLOWED']);
|
||||||
return htmlspecialchars($utf8, $flags, 'UTF-8');
|
return $utf8 ? htmlspecialchars($utf8, $flags, 'UTF-8') : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function ordutf8($string, &$offset) {
|
function ordutf8($string, &$offset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user