]> source.dussan.org Git - nextcloud-server.git/commitdiff
Case insensitive Lang Detection fix #1328
authorBrice Maron <brice@bmaron.net>
Thu, 31 Jan 2013 20:55:51 +0000 (21:55 +0100)
committerBrice Maron <brice@bmaron.net>
Thu, 31 Jan 2013 21:37:46 +0000 (22:37 +0100)
lib/l10n.php

index ca53b3cf65cdad825b1024ed01e82d2bc42780fc..ee8790092655d40dc3b2acc3fde8172e6bd73b78 100644 (file)
@@ -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;
                        }