From 164a15d253b2e9f6251bc271e2f3e18aa2266404 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 17 Aug 2008 11:17:51 -0400 Subject: accept 140-character UTF-8 strings to content darcs-hash:20080817151751-84dde-b3fc3ee57872f53a465fd9b45f4255e5e3be3450.gz --- actions/newnotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/newnotice.php') diff --git a/actions/newnotice.php b/actions/newnotice.php index b576e1326..056b45b8a 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; } -- cgit v1.2.3-54-g00ecf