diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-19 17:24:55 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-19 17:24:55 +0200 |
commit | 089ae980c40544de54a10d407fd366f61ef5ec48 (patch) | |
tree | 30c78db1f04d53c9e595a933459668248aadcb4c /lib/template.php | |
parent | d2936bd90caa2b256d32e7d349449ed58b28107b (diff) | |
download | nextcloud-server-089ae980c40544de54a10d407fd366f61ef5ec48.tar.gz nextcloud-server-089ae980c40544de54a10d407fd366f61ef5ec48.zip |
use new sanitize HTML function
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 8 |
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; } |