From: Evan Prodromou Date: Fri, 21 Aug 2009 12:14:37 +0000 (-0400) Subject: postnotice for OMB correctly checks max notice size X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3565383f777095c0367cc197e5e4b9486784592b;p=quix0rs-gnu-social.git postnotice for OMB correctly checks max notice size --- 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; }