mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-02 23:38:50 +01:00
Remove the double-quote custom validation
Rails has had SQL injection prevention since at least 2009 so we don't need our version of it anymore. Fixes ticket #1237
This commit is contained in:
parent
71cd34a35f
commit
e7268fbaa2
3 changed files with 9 additions and 2 deletions
|
|
@ -220,11 +220,12 @@ class TodosControllerTest < ActionController::TestCase
|
|||
|
||||
start_count = Todo.count
|
||||
put :create, :_source_view => 'todo', "context_name"=>"library", "project_name"=>"Build a working time machine", "todo"=>{
|
||||
:multiple_todos=>"a\nb"}
|
||||
:multiple_todos=>"a\nb\nmuch \"ado\" about \'nothing\'"}
|
||||
|
||||
assert_equal start_count+2, Todo.count, "two todos should have been added"
|
||||
end
|
||||
|
||||
|
||||
def test_add_multiple_dependent_todos
|
||||
login_as(:admin_user)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue