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

remotes/origin/stable45
Brice Maron 2012-06-18 19:51:46 +07:00
parent debd9c8dfb
commit cfb3b633f5
1 changed files with 1 additions and 1 deletions

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