From 7b0e070983f28df03bc86ea265e2a12b8d5b2b99 Mon Sep 17 00:00:00 2001 From: lxnay Date: Thu, 23 Oct 2008 14:59:25 +0000 Subject: [PATCH] Entropy/phpBB3AuthInterface: - fix validate_username_regex() git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2545 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 74af5907e..bd55522a1 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -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):