]> source.dussan.org Git - redmine.git/commitdiff
Do not escape back_url twice when login fails.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 31 Dec 2008 10:39:33 +0000 (10:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 31 Dec 2008 10:39:33 +0000 (10:39 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2214 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 56db008553c3ec0c6cbf6b710ac855c066db0552..a935ce9ec323d9106caa516e2190b4af45a548a1 100644 (file)
@@ -526,6 +526,7 @@ module ApplicationHelper
 
   def back_url_hidden_field_tag
     back_url = params[:back_url] || request.env['HTTP_REFERER']
+    back_url = CGI.unescape(back_url.to_s)
     hidden_field_tag('back_url', CGI.escape(back_url)) unless back_url.blank?
   end