From d44f77cbe35a5e1aa0aea7f2632c8d5028a0c17c Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 14 Nov 2013 16:51:23 -0800 Subject: Don't allow channel creation with a nickname --- include/identity.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/identity.php b/include/identity.php index d6b6735f6..e26d2b29f 100644 --- a/include/identity.php +++ b/include/identity.php @@ -84,7 +84,13 @@ function create_identity($arr) { if (!$ret['success']) { return $ret; } + $nick = mb_strtolower(trim($arr['nickname'])); + if(! $nick) { + $ret['message'] = t('Nickname is required.'); + return $ret; + } + $name = escape_tags($arr['name']); $pageflags = ((x($arr,'pageflags')) ? intval($arr['pageflags']) : PAGE_NORMAL); -- cgit v1.2.3