Force sanitize function to use UTF8 (for php lower than 5.4)
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue