Permalink
Browse files

Only accept git:// source URIs at the app level.

  • Loading branch information...
1 parent 466e917 commit 57430effcb0cd9c0deab38a4dbb984f15f6d0889 @benhoskings committed Aug 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/source.rb
View
@@ -4,5 +4,6 @@ class Source < ActiveRecord::Base
validates_presence_of :uri
validates_uniqueness_of :uri
+ validates_format_of :uri, with: %r{^git://}
end

0 comments on commit 57430ef

Please sign in to comment.