aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-21 17:15:13 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-21 17:15:13 +0000
commitfe6eb79d942732a27bb22dd3d6b189995f5445d1 (patch)
treeb392b261f3c9ce17aae3bc087e4a23186993206a
parent871553973b9c0ca7119c5a248daf6b3c91724a43 (diff)
downloadelgg-fe6eb79d942732a27bb22dd3d6b189995f5445d1.tar.gz
elgg-fe6eb79d942732a27bb22dd3d6b189995f5445d1.tar.bz2
Closes #554: Validation procedure now correctly screening for ascii space
git-svn-id: https://code.elgg.org/elgg/trunk@2484 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/users.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index e920472c9..cdc74995b 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1025,7 +1025,8 @@
(strpos($username, '"')!==false) ||
(strpos($username, '\'')!==false) ||
(strpos($username, '*')!==false) ||
- (strpos($username, '&')!==false)
+ (strpos($username, '&')!==false) ||
+ (strpos($username, ' ')!==false)
)
throw new RegistrationException(elgg_echo('registration:invalidchars'));