From 6be68dd332f93492975d7bd44aa7cc01f536b789 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 13 Jun 2011 19:12:14 +0530 Subject: [PATCH] removed & and , validation in autoname --- cgi-bin/webnotes/model/doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 cgi-bin/webnotes/model/doc.py diff --git a/cgi-bin/webnotes/model/doc.py b/cgi-bin/webnotes/model/doc.py old mode 100644 new mode 100755 index f6dc31bbca..bb15ebb92f --- a/cgi-bin/webnotes/model/doc.py +++ b/cgi-bin/webnotes/model/doc.py @@ -227,7 +227,7 @@ class Document: self.name = self.name.strip() # no leading and trailing blanks - forbidden = ['%', "'", '"', ',', '#', '*', '?', '&', '`'] + forbidden = ['%', "'", '"', '#', '*', '?', '`'] for f in forbidden: if f in self.name: webnotes.msgprint('%s not allowed in ID (name)' % f, raise_exception =1)