validation code in Notice correctly checks length of content
This commit is contained in:
parent
4d05afae30
commit
d5825893c8
@ -152,7 +152,7 @@ class Notice extends Memcached_DataObject
|
|||||||
|
|
||||||
$final = common_shorten_links($content);
|
$final = common_shorten_links($content);
|
||||||
|
|
||||||
if (mb_strlen($final) > 140) {
|
if (Notice::contentTooLong($final)) {
|
||||||
common_log(LOG_INFO, 'Rejecting notice that is too long.');
|
common_log(LOG_INFO, 'Rejecting notice that is too long.');
|
||||||
return _('Problem saving notice. Too long.');
|
return _('Problem saving notice. Too long.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user