X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/effb1b7f4170bb7244c4dfffcbe6134fe00e2bc4..35a2d66e1960b00e5ed0cecbe4263cdeedb1ad62:/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