]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Disallow 'api' nickname
authorZach Copley <zach@controlyourself.ca>
Tue, 9 Sep 2008 00:06:50 +0000 (20:06 -0400)
committerZach Copley <zach@controlyourself.ca>
Tue, 9 Sep 2008 00:06:50 +0000 (20:06 -0400)
darcs-hash:20080909000650-7b5ce-c7eb990db81620b83201c0e361af9dfcdd9c2b89.gz

classes/User.php

index 84a980db4dd275a897ac8b8b0b68bc9128cdbc96..9251a9a84186bf630a024152360efc86b3301216 100644 (file)
@@ -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);
        }