Fixed 10211 Wiki names can't have periods in them.
Same validations as WikiPage model now applied to wiki start page. git-svn-id: http://redmine.rubyforge.org/svn/trunk@463 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
3d685f7bec
commit
8d7de50ca8
11 files changed
+12
-3
No files matched your search
@@ -20,7 +20,7 @@ class WikiPage < ActiveRecord::Base
|
||||
has_one :content, :class_name => 'WikiContent', :foreign_key => 'page_id', :dependent => :destroy
|
||||
|
||||
validates_presence_of :title
|
||||
validates_format_of :title, :with => /^[^,\s]*$/
|
||||
validates_format_of :title, :with => /^[^,\.\/\?\;\|\s]*$/
|
||||
validates_uniqueness_of :title, :scope => :wiki_id, :case_sensitive => false
|
||||
validates_associated :content
|
||||
|
||||
|
||||
Reference in new issue
Block a user