]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
validation code in Notice correctly checks length of content
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 12:12:57 +0000 (08:12 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 12:12:57 +0000 (08:12 -0400)
classes/Notice.php

index e27f09c2c8526149414e3d2029bb2adee05e7e09..2133247b866fc18454ec8a2a40b47bd99bae333e 100644 (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.');
         }