]> source.dussan.org Git - nextcloud-server.git/commitdiff
Force sanitize function to use UTF8 (for php lower than 5.4)
authorBrice Maron <brice@bmaron.net>
Mon, 18 Jun 2012 19:51:46 +0000 (19:51 +0000)
committerBrice Maron <brice@bmaron.net>
Mon, 18 Jun 2012 19:52:05 +0000 (19:52 +0000)
lib/template.php

index a5d10c45d230c36fde286708ec8f86baaa39654a..77e9332d5b30b795cd1371a4703f25a853a58cbd 100644 (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;
     }