diff options
author | friendica <info@friendica.com> | 2014-03-23 18:45:42 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-23 18:45:42 -0700 |
commit | 350624e993ebc3693350d74ce06fb35fc73b4d3c (patch) | |
tree | fd2abc11786c094d19ea3adf18e3cadcfe0f1ebf | |
parent | 7575ff11fb06c03364fd0cb15a08e8aebbfc2e41 (diff) | |
download | volse-hubzilla-350624e993ebc3693350d74ce06fb35fc73b4d3c.tar.gz volse-hubzilla-350624e993ebc3693350d74ce06fb35fc73b4d3c.tar.bz2 volse-hubzilla-350624e993ebc3693350d74ce06fb35fc73b4d3c.zip |
don't allow normal channels to have the name 'sys'.
-rw-r--r-- | include/identity.php | 5 |
1 files changed, 5 insertions, 0 deletions
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; |