From 77a96747d7516921c36a853ee3b3adcf12340527 Mon Sep 17 00:00:00 2001 From: Ori Avtalion Date: Fri, 5 Sep 2008 07:45:34 -0400 Subject: [PATCH] Disallow 'tag' and 'tags' as usernames. Fixes ticket #584 darcs-hash:20080905114534-57fc3-feee793696ddf3d5bbb1ae7f326d9d88dc961e60.gz --- classes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/User.php b/classes/User.php index 1a650c4242..7eb21eaeb3 100644 --- a/classes/User.php +++ b/classes/User.php @@ -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); } -- 2.39.5