]> source.dussan.org Git - nextcloud-server.git/commitdiff
in some case charset can be in lower case.
authorYann VERRY <yann@verry.org>
Wed, 11 Feb 2015 10:59:33 +0000 (11:59 +0100)
committerYann VERRY <yann@verry.org>
Wed, 11 Feb 2015 10:59:33 +0000 (11:59 +0100)
Add strtoupper() in UTF-8 check to avoid error message

lib/private/util.php

index 988ea5c7c7bfdc0f31b6730626a76a75f75c9d2b..d6c76e0960c5e8b5f4a29542051c7b2b051ee626 100644 (file)
@@ -1425,10 +1425,12 @@ class OC_Util {
        }
 
        /**
+        * Check if PhpCharset config is UTF-8
+        *
         * @return string
         */
        public static function isPhpCharSetUtf8() {
-               return ini_get('default_charset') === 'UTF-8';
+               return strtoupper(ini_get('default_charset')) === 'UTF-8';
        }
 
 }