Disallow 'tag' and 'tags' as usernames. Fixes ticket #584

darcs-hash:20080905114534-57fc3-feee793696ddf3d5bbb1ae7f326d9d88dc961e60.gz
This commit is contained in:
Ori Avtalion 2008-09-05 07:45:34 -04:00
parent 1374e0763e
commit 77a96747d7

View File

@ -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);
}