[Pkg-owncloud-commits] [owncloud] 318/394: Case insensitive Lang Detection fix #1328

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:39 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 09f2ac4ffacbea4a7996f53a25ad763275d94b37
Author: Brice Maron <brice at bmaron.net>
Date:   Thu Jan 31 21:55:51 2013 +0100

    Case insensitive Lang Detection fix #1328
---
 lib/l10n.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/l10n.php b/lib/l10n.php
index e239d7e..d95aec1 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -270,7 +270,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;
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list