aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/input.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index 23fa4b8b8..4cd5b0a4f 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -38,7 +38,13 @@
{
global $CONFIG;
if (@include_once(dirname(dirname(dirname(__FILE__)))) . "/vendors/kses/kses.php") {
- $var = kses($var, $CONFIG->allowedtags, $CONFIG->allowedprotocols);
+ if (!is_array($var)) {
+ $var = kses($var, $CONFIG->allowedtags, $CONFIG->allowedprotocols);
+ } else {
+ foreach($var as $key => $el) {
+ $var[$key] = kses($el, $CONFIG->allowedtags, $CONFIG->allowedprotocols);
+ }
+ }
}
}