From: Evan Prodromou Date: Sun, 17 Aug 2008 15:17:51 +0000 (-0400) Subject: accept 140-character UTF-8 strings to content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=164a15d253b2e9f6251bc271e2f3e18aa2266404;p=quix0rs-gnu-social.git accept 140-character UTF-8 strings to content darcs-hash:20080817151751-84dde-b3fc3ee57872f53a465fd9b45f4255e5e3be3450.gz --- diff --git a/actions/newnotice.php b/actions/newnotice.php index b576e13266..056b45b8aa 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -43,7 +43,7 @@ class NewnoticeAction extends Action { if (!$content) { $this->show_form(_('No content!')); return; - } else if (strlen($content) > 140) { + } else if (mb_strlen($content) > 140) { $this->show_form(_('That\'s too long. Max notice size is 140 chars.')); return; }