summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-31 10:39:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-31 10:39:33 +0000
commite6aaa03cf074262f030df82c041a83b19c0a33c9 (patch)
treef57d328dd751c8b979f7db07cddb4f967e1670e7
parent24f3ee777daa7af2026dda38e453265e9d97b430 (diff)
downloadredmine-e6aaa03cf074262f030df82c041a83b19c0a33c9.tar.gz
redmine-e6aaa03cf074262f030df82c041a83b19c0a33c9.zip
Do not escape back_url twice when login fails.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2214 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/application_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 56db00855..a935ce9ec 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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