diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-18 19:51:46 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-18 19:52:05 +0000 |
commit | cfb3b633f50decbe0ebd04ba46eaea5f4e5fa226 (patch) | |
tree | 0080c4d5b345424a796248fa1d57b0a398f92c7a /lib/template.php | |
parent | debd9c8dfb900658d6698738d47e7e88ec862dfa (diff) | |
download | nextcloud-server-cfb3b633f50decbe0ebd04ba46eaea5f4e5fa226.tar.gz nextcloud-server-cfb3b633f50decbe0ebd04ba46eaea5f4e5fa226.zip |
Force sanitize function to use UTF8 (for php lower than 5.4)
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php index a5d10c45d23..77e9332d5b3 100644 --- a/lib/template.php +++ b/lib/template.php @@ -326,7 +326,7 @@ class OC_Template{ * This function is internally used to sanitize HTML. */ private static function sanitizeHTML( &$value ){ - $value = htmlentities( $value ); + $value = htmlentities( $value , ENT_QUOTES, 'UTF-8'); //Specify encoding for PHP<5.4 return $value; } |