summaryrefslogtreecommitdiff
path: root/lib/kolab_html.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolab_html.php')
-rw-r--r--lib/kolab_html.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/kolab_html.php b/lib/kolab_html.php
index afce918..9680ef5 100644
--- a/lib/kolab_html.php
+++ b/lib/kolab_html.php
@@ -316,6 +316,13 @@ class kolab_html
public static function escape($value)
{
+ if (is_array($value)) {
+ foreach ($value as $idx => $val) {
+ $value[$idx] = self::escape($val);
+ }
+ return $value;
+ }
+
return htmlspecialchars($value, ENT_COMPAT, KADM_CHARSET);
}
}