From d5825893c8982a9856f0b7a1731c178160237cdf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 21 Aug 2009 08:12:57 -0400 Subject: validation code in Notice correctly checks length of content --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Notice.php') diff --git a/classes/Notice.php b/classes/Notice.php index e27f09c2c..2133247b8 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.'); } -- cgit v1.2.3-54-g00ecf