summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-27 20:53:52 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-02-27 20:53:52 +0100
commit470fc3817f67c4f13217e14bf8040668d5374e4b (patch)
treebc19c80ec7b12fac0aa08f5c9dade412784cb590 /lib/template.php
parent766a301a6b1832f98c30a09e0218a2e00925d401 (diff)
downloadnextcloud-server-470fc3817f67c4f13217e14bf8040668d5374e4b.tar.gz
nextcloud-server-470fc3817f67c4f13217e14bf8040668d5374e4b.zip
Remove the template autoescaping
Ref #1963
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/template.php b/lib/template.php
index ce55e58d28d..fcf18fee415 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -341,7 +341,6 @@ class OC_Template{
* @brief Assign variables
* @param string $key key
* @param string $value value
- * @param bool $sanitizeHTML false, if data shouldn't get passed through htmlentities
* @return bool
*
* This function assigns a variable. It can be accessed via $_[$key] in
@@ -349,8 +348,7 @@ class OC_Template{
*
* If the key existed before, it will be overwritten
*/
- public function assign( $key, $value, $sanitizeHTML=true ) {
- if($sanitizeHTML == true) $value=OC_Util::sanitizeHTML($value);
+ public function assign( $key, $value) {
$this->vars[$key] = $value;
return true;
}