mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Case insensitive Lang Detection fix #1328
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user