]> source.dussan.org Git - redmine.git/commitdiff
Fixed: 500 internal error when browsing any Redmine page in Epiphany (#5401).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 Apr 2010 10:33:25 +0000 (10:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 Apr 2010 10:33:25 +0000 (10:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3702 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index 66886ea00610e644912db8cf7dd8c56da920c0bf..c0d947c8aa1b8afb2721094d6a4b1beec0789103 100644 (file)
@@ -108,8 +108,9 @@ class ApplicationController < ActionController::Base
       lang = find_language(User.current.language)
     end
     if lang.nil? && request.env['HTTP_ACCEPT_LANGUAGE']
-      accept_lang = parse_qvalues(request.env['HTTP_ACCEPT_LANGUAGE']).first.downcase
+      accept_lang = parse_qvalues(request.env['HTTP_ACCEPT_LANGUAGE']).first
       if !accept_lang.blank?
+        accept_lang = accept_lang.downcase
         lang = find_language(accept_lang) || find_language(accept_lang.split('-').first)
       end
     end