diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-09-25 18:23:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-09-25 18:23:11 +0000 |
commit | 917a89fbf7cef339431c5d873bcbcbccea15ce1e (patch) | |
tree | 9b60af89fed04a33778b99978a89d6c500667f36 /test | |
parent | 18d1c62ca8a8de3ecc0b8731335a49195dafd192 (diff) | |
download | redmine-917a89fbf7cef339431c5d873bcbcbccea15ce1e.tar.gz redmine-917a89fbf7cef339431c5d873bcbcbccea15ce1e.zip |
Fixed JSON escaping of filters (#11929).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10465 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/queries_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb index 5ffc31f8a..aae7e93bc 100644 --- a/test/functional/queries_controller_test.rb +++ b/test/functional/queries_controller_test.rb @@ -273,4 +273,12 @@ class QueriesControllerTest < ActionController::TestCase assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook', :set_filter => 1, :query_id => nil assert_nil Query.find_by_id(1) end + + def test_backslash_should_be_escaped_in_filters + @request.session[:user_id] = 2 + get :new, :subject => 'foo/bar' + assert_response :success + assert_template 'new' + assert_include 'addFilter("subject", "=", ["foo\/bar"]);', response.body + end end |