I am a doofus
Noticed by Andrew Stacey
This commit is contained in:
parent
987140ed83
commit
57d52b0d15
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class WikiFile < ActiveRecord::Base
|
|||
|
||||
def validate
|
||||
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, " +
|
||||
"dashes and spaces are accepted")
|
||||
elsif file_name == '.' or file_name == '..'
|
||||
|
|
Loading…
Reference in a new issue