X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnewnotice.php;h=cc40f89bc137a519843858e7fdc20f659447d0b0;hb=9b741c4f9a211906f18b8aee7fe7cee58f911403;hp=b576e1326641b0c593feae507b644e8742366e72;hpb=0bba990e2f4506da877224285442c81f68662743;p=quix0rs-gnu-social.git diff --git a/actions/newnotice.php b/actions/newnotice.php index b576e13266..cc40f89bc1 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -43,7 +43,9 @@ class NewnoticeAction extends Action { if (!$content) { $this->show_form(_('No content!')); return; - } else if (strlen($content) > 140) { + } else if (mb_strlen($content) > 140) { + common_debug("Content = '$content'", __FILE__); + common_debug("mb_strlen(\$content) = " . mb_strlen($content), __FILE__); $this->show_form(_('That\'s too long. Max notice size is 140 chars.')); return; }