summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/template.php b/lib/template.php
index 77e9332d5b3..75b33d8aace 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -308,13 +308,7 @@ class OC_Template{
* If the key existed before, it will be overwritten
*/
public function assign( $key, $value, $sanitizeHTML=true ){
- if($sanitizeHTML == true) {
- if(is_array($value)) {
- array_walk_recursive($value,'OC_Template::sanitizeHTML');
- } else {
- $value = OC_Template::sanitizeHTML($value);
- }
- }
+ if($sanitizeHTML == true) $value=OC_Util::sanitizeHTML($value);
$this->vars[$key] = $value;
return true;
}