if (!$content) {
$this->show_form(_('No content!'));
return;
- } else if (strlen($content) > 140) {
+ } else if (mb_strlen($content) > 140) {
+ common_debug("Content = '$content'", __FILE__);
+ common_debug("mb_strlen(\$content) = " . mb_strlen($content), __FILE__);
$this->show_form(_('That\'s too long. Max notice size is 140 chars.'));
return;
}
array('nickname' => $user->nickname));
} else {
$url = common_local_url('shownotice',
- array('notice' => $id));
+ array('notice' => $notice->id));
}
common_redirect($url, 303);
}