accept 140-character UTF-8 strings to content

darcs-hash:20080817151751-84dde-b3fc3ee57872f53a465fd9b45f4255e5e3be3450.gz
This commit is contained in:
Evan Prodromou 2008-08-17 11:17:51 -04:00
parent 808b40dc53
commit 164a15d253

View File

@ -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;
}