\w_ replaced with \w, thanks Osman

This commit is contained in:
mdipierro
2012-08-15 09:12:55 -05:00
parent 91c88d56eb
commit f25e92d443
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ def site():
class IS_VALID_APPNAME(object):
def __call__(self,value):
if not re.compile('[\w_]+').match(value):
if not re.compile('\w+').match(value):
return (value,T('Invalid application name'))
if not request.vars.overwrite and \
os.path.exists(os.path.join(apath(r=request),value)):