diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-15 19:04:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-15 19:04:36 +0000 |
commit | 3be2185683479f65e95cba89a419e30375a34df6 (patch) | |
tree | 07cc19764bd340ee9464c28031c07cf0d31cf8ae /test/unit/helpers | |
parent | f694839c8242d37cde65d71813f114f80fe0353f (diff) | |
download | redmine-3be2185683479f65e95cba89a419e30375a34df6.tar.gz redmine-3be2185683479f65e95cba89a419e30375a34df6.zip |
Removes the UTF8 checkmark that prevents redirect from back_url.
git-svn-id: http://svn.redmine.org/redmine/trunk@15535 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 89af800be..48260ccf7 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -1538,4 +1538,9 @@ RAW assert_equal "#{ja} #{ja}...", result assert !result.html_safe? end + + def test_back_url_should_remove_utf8_checkmark_from_referer + stubs(:request).returns(stub(:env => {'HTTP_REFERER' => "/path?utf8=\u2713&foo=bar"})) + assert_equal "/path?foo=bar", back_url + end end |