From ed050497778fb16d9c7f1adf257ca747643d6e20 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 11 May 2024 00:28:51 +0200 Subject: [PATCH] functions.php: fix null parameter --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 1d98f9cf..53c3b55e 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -2276,7 +2276,7 @@ function defined_flags_accumulate($desired_flags) { function utf8tohtml($utf8) { $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) {