X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2f23fea6a7821a4ad4c97fd65744b138ec86267..edd49e85823079d6de19cbc9f89c6abc0568382b:/app/models/tracetag.rb diff --git a/app/models/tracetag.rb b/app/models/tracetag.rb index cb7cf1145..8d2f4fffa 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}, :invalid_chars => true + validates :tag, :length => 1..255, :characters => { :url_safe => true } end