summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-21 08:14:37 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-21 08:14:37 -0400
commit3565383f777095c0367cc197e5e4b9486784592b (patch)
treee8280e753cfe72c837f83f42415e7508b884b14e
parent3eeb9deffbac17e49abe2789cd1578726a2bce97 (diff)
postnotice for OMB correctly checks max notice size
-rw-r--r--actions/postnotice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/postnotice.php b/actions/postnotice.php
index 74be47119..3d2c4d5b4 100644
--- a/actions/postnotice.php
+++ b/actions/postnotice.php
@@ -66,7 +66,7 @@ class PostnoticeAction extends Action
function checkNotice()
{
$content = common_shorten_links($_POST['omb_notice_content']);
- if (mb_strlen($content) > 140) {
+ if (Notice::contentTooLong($content)) {
$this->clientError(_('Invalid notice content'), 400);
return false;
}