postnotice for OMB correctly checks max notice size

This commit is contained in:
Evan Prodromou 2009-08-21 08:14:37 -04:00
parent 3eeb9deffb
commit 3565383f77
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class PostnoticeAction extends Action
function checkNotice()
{
$content = common_shorten_links($_POST['omb_notice_content']);
if (mb_strlen($content) > 140) {
if (Notice::contentTooLong($content)) {
$this->clientError(_('Invalid notice content'), 400);
return false;
}