mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
nullable_htmlentities - prevent Passing null to parameter error
This commit is contained in:
@@ -51,7 +51,7 @@ function key32gen()
|
||||
function nullable_htmlentities($unsanitizedInput)
|
||||
{
|
||||
//return htmlentities($unsanitizedInput ?? '');
|
||||
return htmlspecialchars($unsanitizedInput, ENT_QUOTES, 'UTF-8');
|
||||
return htmlspecialchars($unsanitizedInput ?? '', ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
|
||||
function initials($str)
|
||||
|
||||
Reference in New Issue
Block a user