add btlogger to unxmlify()

This commit is contained in:
Mario Vavti 2019-05-11 16:42:53 +02:00
parent bf5deace8e
commit 973d91d120

View File

@ -476,6 +476,15 @@ function unxmlify($s) {
return $ret;
*/
if(is_array($s)) {
// allow to fall through so we ge a PHP error, as the log statement will
// probably get lost in the noise unless we're specifically looking for it.
btlogger('unxmlify called with array: ' . print_r($s,true), LOGGER_NORMAL, LOG_WARNING);
}
$ret = htmlspecialchars_decode($s, ENT_QUOTES);
return $ret;
}