Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
4a3d7e0b78
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class WikiFile < ActiveRecord::Base
|
||||||
|
|
||||||
def validate
|
def validate
|
||||||
if file_name
|
if file_name
|
||||||
if ! is_valid?(file_name)
|
if ! WikiFile.is_valid?(file_name)
|
||||||
errors.add("file_name", "is invalid. Only latin characters, digits, dots, underscores, " +
|
errors.add("file_name", "is invalid. Only latin characters, digits, dots, underscores, " +
|
||||||
"dashes and spaces are accepted")
|
"dashes and spaces are accepted")
|
||||||
elsif file_name == '.' or file_name == '..'
|
elsif file_name == '.' or file_name == '..'
|
||||||
|
|
Loading…
Reference in a new issue