X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/64816e50b57ced52f5fb0082f97b2844e002cf11..c2f23fea6a7821a4ad4c97fd65744b138ec86267:/app/models/note_comment.rb diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index 1772b3f97..69a93c532 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -34,7 +34,7 @@ class NoteComment < ActiveRecord::Base validates :author, :associated => true validates :event, :inclusion => %w[opened closed reopened commented hidden] validates :body, :length => { :maximum => 2000 }, - :format => /\A[^\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff]*\z/ + :invalid_chars => true # Return the comment text def body