aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-02-23 15:37:58 -0800
committernobody <nobody@zotlabs.com>2021-02-23 15:37:58 -0800
commit0f89d2b8e06de56effc5e5f751c098a432e26e6a (patch)
treeca60262a966ec122a7b4962f9ef56939b6343ae4
parentfc88c306ab282ab7061d69e5bdc60896fbdb8839 (diff)
downloadvolse-hubzilla-0f89d2b8e06de56effc5e5f751c098a432e26e6a.tar.gz
volse-hubzilla-0f89d2b8e06de56effc5e5f751c098a432e26e6a.tar.bz2
volse-hubzilla-0f89d2b8e06de56effc5e5f751c098a432e26e6a.zip
some content fields found in the wild are actually arrays
-rw-r--r--include/items.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index eda79c00d..50645fac2 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1421,7 +1421,12 @@ function purify_imported_object($obj) {
$ret = null;
if (is_array($obj)) {
foreach ( $obj as $k => $v ) {
- $ret[$k] = purify_html($v);
+ if (is_array($v)) {
+ $ret[$k] = purify_imported_object($v);
+ }
+ elseif (is_string($v)) {
+ $ret[$k] = purify_html($v);
+ }
}
}
elseif (is_string($obj)) {