From: Zach Copley Date: Tue, 9 Sep 2008 00:06:50 +0000 (-0400) Subject: Disallow 'api' nickname X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6eb84f0f0362e0b804c4c39b429e3dc8ce27acc3;p=quix0rs-gnu-social.git Disallow 'api' nickname darcs-hash:20080909000650-7b5ce-c7eb990db81620b83201c0e361af9dfcdd9c2b89.gz --- diff --git a/classes/User.php b/classes/User.php index 84a980db4d..9251a9a841 100644 --- a/classes/User.php +++ b/classes/User.php @@ -110,7 +110,8 @@ 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', 'tag', 'tags'); + 'search', 'avatar', 'tag', 'tags', + 'api'); $merged = array_merge($blacklist, common_config('nickname', 'blacklist')); return !in_array($nickname, $merged); }