mirror of https://github.com/itflow-org/itflow
nullable_htmlentities - prevent Passing null to parameter error
This commit is contained in:
parent
701df8db38
commit
54dde984ac
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ if (isset($_POST['login'])) {
|
|||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
|
||||
<?php if(!empty($config_login_message)){ ?>
|
||||
<?php if (!empty($config_login_message)){ ?>
|
||||
<p class="login-box-msg px-0"><?php echo nl2br($config_login_message); ?></p>
|
||||
<?php } ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue