aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-14 16:51:23 -0800
committerfriendica <info@friendica.com>2013-11-14 16:51:23 -0800
commitd44f77cbe35a5e1aa0aea7f2632c8d5028a0c17c (patch)
treecf6d130ab9742c44e63e8445f2ccc0e75f35a8dd
parentc2274403c7c35eecc254da0a5b3778fbb2597148 (diff)
downloadvolse-hubzilla-d44f77cbe35a5e1aa0aea7f2632c8d5028a0c17c.tar.gz
volse-hubzilla-d44f77cbe35a5e1aa0aea7f2632c8d5028a0c17c.tar.bz2
volse-hubzilla-d44f77cbe35a5e1aa0aea7f2632c8d5028a0c17c.zip
Don't allow channel creation with a nickname
-rw-r--r--include/identity.php6
1 files changed, 6 insertions, 0 deletions
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);