From: Brice Maron Date: Mon, 18 Jun 2012 19:51:46 +0000 (+0000) Subject: Force sanitize function to use UTF8 (for php lower than 5.4) X-Git-Tag: v4.5.0beta1~74^2~410^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cfb3b633f50decbe0ebd04ba46eaea5f4e5fa226;p=nextcloud-server.git Force sanitize function to use UTF8 (for php lower than 5.4) --- 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; }