X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..2f28495d6b041c99536fe494c447c4e93fa79d16:/app/models/tracetag.rb diff --git a/app/models/tracetag.rb b/app/models/tracetag.rb index 1a4fbd398..84b6c6dfa 100644 --- a/app/models/tracetag.rb +++ b/app/models/tracetag.rb @@ -22,5 +22,5 @@ class Tracetag < ActiveRecord::Base belongs_to :trace, :foreign_key => "gpx_id" validates :trace, :associated => true - validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z} + validates :tag, :length => 1..255, :characters => { :url_safe => true } end