summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-11 18:04:54 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-11 18:04:54 +0100
commit99a97649f21cc9914d7eddbac68b428dc2a0da0d (patch)
tree2cedf4adba4d0d2490aeae9c2eb162a4ba1f2ef2
parentfbbb9fe0fd395ef94c62609fe9ab4c908644d15d (diff)
parent1fcea6f1bd77a2ed2cfe7d7631d19b9db6ee3310 (diff)
downloadnextcloud-server-99a97649f21cc9914d7eddbac68b428dc2a0da0d.tar.gz
nextcloud-server-99a97649f21cc9914d7eddbac68b428dc2a0da0d.zip
Merge pull request #14097 from yanntech/fix/utf8-check
in some case charset can be in lower case.
-rw-r--r--lib/private/util.php4
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';
}
}