]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
accept 140-character UTF-8 strings to content
authorEvan Prodromou <evan@prodromou.name>
Sun, 17 Aug 2008 15:17:51 +0000 (11:17 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sun, 17 Aug 2008 15:17:51 +0000 (11:17 -0400)
darcs-hash:20080817151751-84dde-b3fc3ee57872f53a465fd9b45f4255e5e3be3450.gz

actions/newnotice.php

index b576e1326641b0c593feae507b644e8742366e72..056b45b8aa07b362aa36be07197b271e5d02f214 100644 (file)
@@ -43,7 +43,7 @@ class NewnoticeAction extends Action {
                if (!$content) {
                        $this->show_form(_('No content!'));
                        return;
-               } else if (strlen($content) > 140) {
+               } else if (mb_strlen($content) > 140) {
                        $this->show_form(_('That\'s too long. Max notice size is 140 chars.'));
                        return;
                }