From: Brice Maron Date: Thu, 31 Jan 2013 20:55:51 +0000 (+0100) Subject: Case insensitive Lang Detection fix #1328 X-Git-Tag: v5.0.0alpha1~156 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=17f94de19b5a22c791d4d099ab3a7ad11b254445;p=nextcloud-server.git Case insensitive Lang Detection fix #1328 --- 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; }