diff options
author | Brice Maron <brice@bmaron.net> | 2013-01-31 21:55:51 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2013-01-31 22:37:46 +0100 |
commit | 17f94de19b5a22c791d4d099ab3a7ad11b254445 (patch) | |
tree | 04d3d04ff0a28524000039fe28d6fa88c88db60f /lib/l10n.php | |
parent | 5bf7791b4212c6dba2ce7289841c71f8177cfa3f (diff) | |
download | nextcloud-server-17f94de19b5a22c791d4d099ab3a7ad11b254445.tar.gz nextcloud-server-17f94de19b5a22c791d4d099ab3a7ad11b254445.zip |
Case insensitive Lang Detection fix #1328
Diffstat (limited to 'lib/l10n.php')
-rw-r--r-- | lib/l10n.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n.php b/lib/l10n.php index ca53b3cf65c..ee879009265 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -287,7 +287,7 @@ class OC_L10N{ } if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { - $accepted_languages = preg_split('/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE']); + $accepted_languages = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])); if(is_array($app)) { $available = $app; } |