aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-18 20:28:22 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-18 20:28:22 +0000
commitf2aa2c6980460261f27bf01d3e074aa9b2d4bd5d (patch)
treefa970a82dc5871c7cd1496cd2e62eb632ba15dd1 /engine/lib/users.php
parentb62d40b4d21a0cf06c31ca4cb47d5a2523276e2d (diff)
downloadelgg-f2aa2c6980460261f27bf01d3e074aa9b2d4bd5d.tar.gz
elgg-f2aa2c6980460261f27bf01d3e074aa9b2d4bd5d.tar.bz2
Merging r6497:6499 to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@6514 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index fcc10133f..99ef15246 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1435,10 +1435,10 @@ function validate_username($username) {
}
// Belts and braces TODO: Tidy into main unicode
- $blacklist2 = '/\\"\'*& ?#%^(){}[]~?<>;|¬`@-+=';
+ $blacklist2 = '\'/\\"*& ?#%^(){}[]~?<>;|¬`@-+=';
for ($n=0; $n < strlen($blacklist2); $n++) {
if (strpos($username, $blacklist2[$n])!==false) {
- throw new RegistrationException(elgg_echo('registration:invalidchars'));
+ throw new RegistrationException(sprintf(elgg_echo('registration:invalidchars'), $blacklist2[$n], $blacklist2));
}
}