mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-23 09:16:10 +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
|
|
@ -129,7 +129,6 @@ class Todo < ActiveRecord::Base
|
|||
if !show_from.blank? && show_from < user.date
|
||||
errors.add("show_from", I18n.t('models.todo.error_date_must_be_future'))
|
||||
end
|
||||
errors.add(:description, "may not contain \" characters") if /\"/.match(self.description)
|
||||
unless @predecessor_array.nil? # Only validate predecessors if they changed
|
||||
@predecessor_array.each do |todo|
|
||||
errors.add("Depends on:", "Adding '#{h(todo.specification)}' would create a circular dependency") if is_successor?(todo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue