Merge pull request #2 from nabinhait/master
removed & and , validation in autoname
This commit is contained in:
commit
816b31ee50
1 changed files with 1 additions and 1 deletions
2
cgi-bin/webnotes/model/doc.py
Normal file → Executable file
2
cgi-bin/webnotes/model/doc.py
Normal file → Executable file
|
|
@ -227,7 +227,7 @@ class Document:
|
||||||
|
|
||||||
self.name = self.name.strip() # no leading and trailing blanks
|
self.name = self.name.strip() # no leading and trailing blanks
|
||||||
|
|
||||||
forbidden = ['%', "'", '"', ',', '#', '*', '?', '&', '`']
|
forbidden = ['%', "'", '"', '#', '*', '?', '`']
|
||||||
for f in forbidden:
|
for f in forbidden:
|
||||||
if f in self.name:
|
if f in self.name:
|
||||||
webnotes.msgprint('%s not allowed in ID (name)' % f, raise_exception =1)
|
webnotes.msgprint('%s not allowed in ID (name)' % f, raise_exception =1)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue