summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-17 11:17:51 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-17 11:17:51 -0400
commit164a15d253b2e9f6251bc271e2f3e18aa2266404 (patch)
tree8bfbe1c9974dca214aac5670bf7c2ddbb5d652d6 /actions/newnotice.php
parent808b40dc534316a82b9c614f1d8438fd1b149074 (diff)
accept 140-character UTF-8 strings to content
darcs-hash:20080817151751-84dde-b3fc3ee57872f53a465fd9b45f4255e5e3be3450.gz
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php2
1 files changed, 1 insertions, 1 deletions
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;
}