summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorOri Avtalion <ori@avtalion.name>2008-09-05 07:45:34 -0400
committerOri Avtalion <ori@avtalion.name>2008-09-05 07:45:34 -0400
commit77a96747d7516921c36a853ee3b3adcf12340527 (patch)
treedc4ed02b067569f5654967c3109ddcd54c3fd454 /classes/User.php
parent1374e0763e956f619b0d96820597e3f8e8f28187 (diff)
Disallow 'tag' and 'tags' as usernames. Fixes ticket #584
darcs-hash:20080905114534-57fc3-feee793696ddf3d5bbb1ae7f326d9d88dc961e60.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php
index 1a650c424..7eb21eaeb 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -102,7 +102,7 @@ class User extends DB_DataObject
# XXX: should already be validated for size, content, etc.
static $blacklist = array('rss', 'xrds', 'doc', 'main',
'settings', 'notice', 'user',
- 'search', 'avatar');
+ 'search', 'avatar', 'tag', 'tags');
$merged = array_merge($blacklist, common_config('nickname', 'blacklist'));
return !in_array($nickname, $merged);
}