Skip to content
Snippets Groups Projects
Commit 470fc381 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Remove the template autoescaping

Ref #1963
parent 766a301a
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment