diff options
author | Naoto Kobayashi <naoto.kobayashi4c@gmail.com> | 2021-11-14 08:25:32 +0900 |
---|---|---|
committer | Naoto Kobayashi <naoto.kobayashi4c@gmail.com> | 2021-11-14 09:18:59 +0900 |
commit | d2eb5aaa6ddbdd3fbbf6ba871f04398038eddcb2 (patch) | |
tree | 09d7b09ed6760934963e6e5e336b406730818bdc /lib/private/legacy/OC_Util.php | |
parent | 455bff5c1703a71dfe25c2d066c06e88eb4280a8 (diff) | |
download | nextcloud-server-d2eb5aaa6ddbdd3fbbf6ba871f04398038eddcb2.tar.gz nextcloud-server-d2eb5aaa6ddbdd3fbbf6ba871f04398038eddcb2.zip |
Check whether setlocale works only after setlocale
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r-- | lib/private/legacy/OC_Util.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 94fcb900898..75c337f8baa 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -1249,12 +1249,13 @@ class OC_Util { // Borrowed from \Patchwork\Utf8\Bootup::initLocale setlocale(LC_ALL, 'C.UTF-8', 'C'); setlocale(LC_CTYPE, 'en_US.UTF-8', 'fr_FR.UTF-8', 'es_ES.UTF-8', 'de_DE.UTF-8', 'ru_RU.UTF-8', 'pt_BR.UTF-8', 'it_IT.UTF-8', 'ja_JP.UTF-8', 'zh_CN.UTF-8', '0'); - } - // Check again - if ('' === escapeshellcmd('§')) { - return false; + // Check again + if ('' === escapeshellcmd('§')) { + return false; + } } + return true; } |