aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-07-14 12:31:57 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-07-14 12:31:57 +0000
commite16e766409378978d4f3401613a78e0428f2a46a (patch)
tree516d596bfd07dd41978833543b25d2b556a1bff8
parent316f087d47e0741fa6864cdb3868f6ca8f5c03bd (diff)
downloadforums-e16e766409378978d4f3401613a78e0428f2a46a.tar
forums-e16e766409378978d4f3401613a78e0428f2a46a.tar.gz
forums-e16e766409378978d4f3401613a78e0428f2a46a.tar.bz2
forums-e16e766409378978d4f3401613a78e0428f2a46a.tar.xz
forums-e16e766409378978d4f3401613a78e0428f2a46a.zip
#13391
git-svn-id: file:///svn/phpbb/trunk@7883 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/CHANGELOG.html1
-rw-r--r--phpBB/includes/functions_user.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index cc83b0168f..1ee9c24df1 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -226,6 +226,7 @@ p a {
<li>[Fix] Removed extra ampersand from ACP link (Bug #13315)</li>
<li>[Fix] used cleaned up version of given field identification for pre-filling a new custom profile field (Bug #13319)</li>
<li>[Fix] Correctly convert 2.0 website profile fields. (Bug #13379)</li>
+ <li>[Fix] Fixed the "Alphanumeric" and "Alphanumeric and spacers" username selection limitations (Bug #13391)</li>
</ul>
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 4feb17cac5..46ea90fa3a 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1303,12 +1303,12 @@ function validate_username($username, $allowed_username = false)
case 'USERNAME_ALPHA_ONLY':
$pcre = true;
- $regex = '[A-Za-z]+';
+ $regex = '[A-Za-z0-9]+';
break;
case 'USERNAME_ALPHA_SPACERS':
$pcre = true;
- $regex = '[A-Za-z-\]_+ ]+';
+ $regex = '[A-Za-z0-9-[\]_+ ]+';
break;
case 'USERNAME_LETTER_NUM':