aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-05 16:38:55 -0700
committerzotlabs <mike@macgirvin.com>2017-09-05 16:38:55 -0700
commit842a041a888434df7d6312db08ce805c5ee21bf7 (patch)
tree09d8332752c7add0cd6ce7e045153d7cb6c3e913 /include/channel.php
parentd58f965b9ab58acd3f218cce3c9d428e27315045 (diff)
downloadvolse-hubzilla-842a041a888434df7d6312db08ce805c5ee21bf7.tar.gz
volse-hubzilla-842a041a888434df7d6312db08ce805c5ee21bf7.tar.bz2
volse-hubzilla-842a041a888434df7d6312db08ce805c5ee21bf7.zip
remove period from characters allowed in username, as this will mess up URL based content-type negotiation. It was previously disallowed but permitted a month or two ago after seeing Diaspora started allowing it. It's OK if they have it, but we can't; as many of our urls are based on username and theirs are primarily based on uid.
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php
index faf28df28..41feca362 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -52,7 +52,7 @@ function identity_check_service_class($account_id) {
*
* This action is pluggable.
* We're currently only checking for an empty name or one that exceeds our
- * storage limit (255 chars). 255 chars is probably going to create a mess on
+ * storage limit (191 chars). 191 chars is probably going to create a mess on
* some pages.
* Plugins can set additional policies such as full name requirements, character
* sets, multi-byte length, etc.
@@ -67,7 +67,7 @@ function validate_channelname($name) {
if (! $name)
return t('Empty name');
- if (strlen($name) > 255)
+ if (mb_strlen($name) > 191)
return t('Name too long');
$arr = ['name' => $name];