validation code in Notice correctly checks length of content

This commit is contained in:
Evan Prodromou 2009-08-21 08:12:57 -04:00
parent 4d05afae30
commit d5825893c8

View File

@ -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.');
}