Force sanitize function to use UTF8 (for php lower than 5.4)

This commit is contained in:
Brice Maron 2012-06-18 19:51:46 +00:00
parent debd9c8dfb
commit cfb3b633f5

View file

@ -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;
}