summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-21 08:12:57 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-21 08:12:57 -0400
commitd5825893c8982a9856f0b7a1731c178160237cdf (patch)
tree6fe9f75bfcec3f2a18b486e610f1b9f90027b3f9
parent4d05afae302f1870af369a713ab7ed291c821165 (diff)
validation code in Notice correctly checks length of content
-rw-r--r--classes/Notice.php2
1 files changed, 1 insertions, 1 deletions
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.');
}