From: Evan Prodromou Date: Fri, 21 Aug 2009 12:12:57 +0000 (-0400) Subject: validation code in Notice correctly checks length of content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d5825893c8982a9856f0b7a1731c178160237cdf;p=quix0rs-gnu-social.git validation code in Notice correctly checks length of content --- diff --git a/classes/Notice.php b/classes/Notice.php index e27f09c2c8..2133247b86 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -152,7 +152,7 @@ class Notice extends Memcached_DataObject $final = common_shorten_links($content); - if (mb_strlen($final) > 140) { + if (Notice::contentTooLong($final)) { common_log(LOG_INFO, 'Rejecting notice that is too long.'); return _('Problem saving notice. Too long.'); }