From 3565383f777095c0367cc197e5e4b9486784592b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 21 Aug 2009 08:14:37 -0400 Subject: postnotice for OMB correctly checks max notice size --- actions/postnotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions') diff --git a/actions/postnotice.php b/actions/postnotice.php index 74be47119..3d2c4d5b4 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; } -- cgit v1.2.3-54-g00ecf