mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 21:08:48 +01:00
#300: Prevents " characters in action descriptions
This commit is contained in:
parent
85127c8b11
commit
358f1abba2
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ class Todo < ActiveRecord::Base
|
|||
if !show_from.blank? && show_from < user.date
|
||||
errors.add("show_from", "must be a date in the future")
|
||||
end
|
||||
errors.add(:description, "may not contain \" characters") if /\"/.match(description)
|
||||
unless @predecessor_array.nil? # Only validate predecessors if they changed
|
||||
@predecessor_array.each do |specification|
|
||||
t = todo_from_specification(specification)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue