X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d73a5d4bc015d304e7b8863a0e927ac0b134e07b..35a2d66e1960b00e5ed0cecbe4263cdeedb1ad62:/app/models/tracetag.rb diff --git a/app/models/tracetag.rb b/app/models/tracetag.rb index 75fcb48b7..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}, :characters => true + validates :tag, :length => 1..255, :characters => { :url_safe => true } end