aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'));