Entropy/phpBB3AuthInterface:

- fix validate_username_regex()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2545 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-10-23 14:59:25 +00:00
parent 088c92eb56
commit 7b0e070983

View File

@@ -19176,7 +19176,7 @@ class phpBB3AuthInterface(DistributionAuthInterface,RemoteDbSkelInterface):
regex = '[-\]_+ [a-zA-Z0-9]+'
else: # USERNAME_ASCII
regex = '[\x01-\x7F]+'
regex = "#^%s$#u" % (regex,)
regex = "^%s$" % (regex,)
import re
myreg = re.compile(regex)
if myreg.match(username):