aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-05-11 16:42:53 +0200
committerMario Vavti <mario@mariovavti.com>2019-05-11 16:42:53 +0200
commit973d91d120c6d14c2973bf897de15a1dea745396 (patch)
treea93956b17f4fadeba8fec49ff6e2ca5e7cee6ef1 /include/text.php
parentbf5deace8e317a91ec8c8a85a661251b75dfe6fd (diff)
downloadvolse-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.php9
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;
}