diff options
author | RealRancor <Fisch.666@gmx.de> | 2015-02-19 19:53:43 +0100 |
---|---|---|
committer | RealRancor <Fisch.666@gmx.de> | 2015-02-19 19:53:43 +0100 |
commit | 9e4be2909cde13deb089c261064b3727b3a6a47f (patch) | |
tree | e236599f6194d3c023a666156e4a403c7aee68a2 /lib/private | |
parent | d8b676f485d4330e930e4deec680f3c2d36bb149 (diff) | |
download | nextcloud-server-9e4be2909cde13deb089c261064b3727b3a6a47f.tar.gz nextcloud-server-9e4be2909cde13deb089c261064b3727b3a6a47f.zip |
in some case charset can be in lower case
Diffstat (limited to 'lib/private')
-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 4a0a0289191..4e69bf20cd3 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1399,10 +1399,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'; } } |