summaryrefslogtreecommitdiffstats
path: root/app/models/tracker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/tracker.rb')
-rw-r--r--app/models/tracker.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/tracker.rb b/app/models/tracker.rb
index a4376a351..041525f0f 100644
--- a/app/models/tracker.rb
+++ b/app/models/tracker.rb
@@ -23,7 +23,8 @@ class Tracker < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
-
+ validates_format_of :name, :with => /^[\w\s\'\-]*$/i
+
private
def check_integrity
raise "Can't delete tracker" if Issue.find(:first, :conditions => ["tracker_id=?", self.id])