From 350624e993ebc3693350d74ce06fb35fc73b4d3c Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 23 Mar 2014 18:45:42 -0700 Subject: don't allow normal channels to have the name 'sys'. --- include/identity.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index c25a3da43..c8a925dac 100644 --- a/include/identity.php +++ b/include/identity.php @@ -177,6 +177,11 @@ function create_identity($arr) { return $ret; } + if($nick === 'sys' && (! ($pageflags & PAGE_SYSTEM))) { + $ret['message'] = t('Reserved nickname. Please choose another.'); + return $ret; + } + if(check_webbie(array($nick)) !== $nick) { $ret['message'] = t('Nickname has unsupported characters or is already being used on this site.'); return $ret; -- cgit v1.2.3