summaryrefslogtreecommitdiff
path: root/actions/profilesettings.php
diff options
context:
space:
mode:
authorSean Murphy <sgmurphy@gmail.com>2009-02-09 17:29:39 -0500
committerSean Murphy <sgmurphy@gmail.com>2009-02-09 17:29:39 -0500
commitbdd9f6ce1d9bafc1c534aec224fa0ad1452779c1 (patch)
tree928e7efa3c382787adacf3e7234d77bce506eb80 /actions/profilesettings.php
parentf6705f06c0a8251c0f3eb0fe88532e75645f7705 (diff)
parent32744124bcb8aa0683490a56defd4a79f072d278 (diff)
Merge commit 'upstream/0.7.x' into 0.7.x
Diffstat (limited to 'actions/profilesettings.php')
-rw-r--r--actions/profilesettings.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 82e6c3c82..60f7c0796 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -198,13 +198,13 @@ class ProfilesettingsAction extends AccountSettingsAction
!Validate::uri($homepage, array('allowed_schemes' => array('http', 'https')))) {
$this->showForm(_('Homepage is not a valid URL.'));
return;
- } else if (!is_null($fullname) && strlen($fullname) > 255) {
+ } else if (!is_null($fullname) && mb_strlen($fullname) > 255) {
$this->showForm(_('Full name is too long (max 255 chars).'));
return;
- } else if (!is_null($bio) && strlen($bio) > 140) {
+ } else if (!is_null($bio) && mb_strlen($bio) > 140) {
$this->showForm(_('Bio is too long (max 140 chars).'));
return;
- } else if (!is_null($location) && strlen($location) > 255) {
+ } else if (!is_null($location) && mb_strlen($location) > 255) {
$this->showForm(_('Location is too long (max 255 chars).'));
return;
} else if (is_null($timezone) || !in_array($timezone, DateTimeZone::listIdentifiers())) {