Add group and groups to list of forbidden user names

This commit is contained in:
Evan Prodromou 2009-01-21 12:21:16 -05:00
parent 26bc168c93
commit 64f5c542df

View File

@ -118,7 +118,7 @@ class User extends Memcached_DataObject
static $blacklist = array('rss', 'xrds', 'doc', 'main',
'settings', 'notice', 'user',
'search', 'avatar', 'tag', 'tags',
'api', 'message');
'api', 'message', 'group', 'groups');
$merged = array_merge($blacklist, common_config('nickname', 'blacklist'));
return !in_array($nickname, $merged);
}