diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-02-26 16:00:31 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-02-26 16:00:31 +0100 |
commit | 18d43f74693941417a9a52feb7092894d721b560 (patch) | |
tree | c46bd3f4baf24ee1ddf379f32f38660f5957e33f /lib/private/util.php | |
parent | 522469614b96ab3ce8edae87c0f9da1079166ac7 (diff) | |
parent | 06cf93e6ee19ea5c710b029fd403af3c90529074 (diff) | |
download | nextcloud-server-18d43f74693941417a9a52feb7092894d721b560.tar.gz nextcloud-server-18d43f74693941417a9a52feb7092894d721b560.zip |
Merge pull request #14474 from owncloud/move-utf-8-check-to-setup
Move UTF-8 check to setup
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 68b248f0003..7c4a1173082 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -651,6 +651,7 @@ class OC_Util { 'ini' => [ 'mbstring.func_overload' => 0, 'output_buffering' => false, + 'default_charset' => 'UTF-8', ], ); $missingDependencies = array(); @@ -684,6 +685,11 @@ class OC_Util { $invalidIniSettings[] = [$setting, $expected]; } } + if(is_string($expected)) { + if(strtolower($iniWrapper->getString($setting)) !== strtolower($expected)) { + $invalidIniSettings[] = [$setting, $expected]; + } + } } foreach($missingDependencies as $missingDependency) { @@ -1501,13 +1507,4 @@ class OC_Util { } } - /** - * Check if PhpCharset config is UTF-8 - * - * @return string - */ - public static function isPhpCharSetUtf8() { - return strtoupper(ini_get('default_charset')) === 'UTF-8'; - } - } |