summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-18 19:51:46 +0000
committerBrice Maron <brice@bmaron.net>2012-06-18 19:52:05 +0000
commitcfb3b633f50decbe0ebd04ba46eaea5f4e5fa226 (patch)
tree0080c4d5b345424a796248fa1d57b0a398f92c7a /lib/template.php
parentdebd9c8dfb900658d6698738d47e7e88ec862dfa (diff)
downloadnextcloud-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.php2
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;
}