diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-05-11 16:42:53 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-05-11 16:42:53 +0200 |
commit | 973d91d120c6d14c2973bf897de15a1dea745396 (patch) | |
tree | a93956b17f4fadeba8fec49ff6e2ca5e7cee6ef1 /include/text.php | |
parent | bf5deace8e317a91ec8c8a85a661251b75dfe6fd (diff) | |
download | volse-hubzilla-973d91d120c6d14c2973bf897de15a1dea745396.tar.gz volse-hubzilla-973d91d120c6d14c2973bf897de15a1dea745396.tar.bz2 volse-hubzilla-973d91d120c6d14c2973bf897de15a1dea745396.zip |
add btlogger to unxmlify()
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index a5663fc56..6a2a9e427 100644 --- a/include/text.php +++ b/include/text.php @@ -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; } |