@@ -40,7 +40,7 class WikiPage < ActiveRecord::Base | |||
|
40 | 40 | attr_accessor :redirect_existing_links |
|
41 | 41 | |
|
42 | 42 | validates_presence_of :title |
|
43 |
validates_format_of :title, :with => / |
|
|
43 | validates_format_of :title, :with => /\A[^,\.\/\?\;\|\s]*\z/ | |
|
44 | 44 | validates_uniqueness_of :title, :scope => :wiki_id, :case_sensitive => false |
|
45 | 45 | validates_associated :content |
|
46 | 46 |
General Comments 0
You need to be logged in to leave comments.
Login now