diff options
author | Yann VERRY <yann@verry.org> | 2015-02-11 11:59:33 +0100 |
---|---|---|
committer | Yann VERRY <yann@verry.org> | 2015-02-11 11:59:33 +0100 |
commit | 1fcea6f1bd77a2ed2cfe7d7631d19b9db6ee3310 (patch) | |
tree | eb3803d57f3ec6152fa143c0296f043c1d7b4c2e /lib | |
parent | 9baf7a0a3f76e876308cd52fc0c0c30d2b8c9478 (diff) | |
download | nextcloud-server-1fcea6f1bd77a2ed2cfe7d7631d19b9db6ee3310.tar.gz nextcloud-server-1fcea6f1bd77a2ed2cfe7d7631d19b9db6ee3310.zip |
in some case charset can be in lower case.
Add strtoupper() in UTF-8 check to avoid error message
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 988ea5c7c7b..d6c76e0960c 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -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'; } } |