From 6eb84f0f0362e0b804c4c39b429e3dc8ce27acc3 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 8 Sep 2008 20:06:50 -0400 Subject: [PATCH] Disallow 'api' nickname darcs-hash:20080909000650-7b5ce-c7eb990db81620b83201c0e361af9dfcdd9c2b89.gz --- classes/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.5