From 3565383f777095c0367cc197e5e4b9486784592b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 21 Aug 2009 08:14:37 -0400 Subject: [PATCH] postnotice for OMB correctly checks max notice size --- actions/postnotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/postnotice.php b/actions/postnotice.php index 74be47119a..3d2c4d5b42 100644 --- a/actions/postnotice.php +++ b/actions/postnotice.php @@ -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; } -- 2.39.5