From 53e820b46667c2f0e22ffa0a2f91e847a02f4cb8 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 17 Jul 2015 11:22:25 +0200 Subject: [PATCH] Maximum character limit with utf8mb4 is 191 in varchar --- actions/profilesettings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/profilesettings.php b/actions/profilesettings.php index 7d3143d4b1..3bdad42d9a 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -275,9 +275,9 @@ class ProfilesettingsAction extends SettingsAction // TRANS: Validation error in form for profile settings. $this->showForm(_('Homepage is not a valid URL.')); return; - } else if (!is_null($fullname) && mb_strlen($fullname) > 255) { + } else if (!is_null($fullname) && mb_strlen($fullname) > 191) { // TRANS: Validation error in form for profile settings. - $this->showForm(_('Full name is too long (maximum 255 characters).')); + $this->showForm(_('Full name is too long (maximum 191 characters).')); return; } else if (Profile::bioTooLong($bio)) { // TRANS: Validation error in form for profile settings. @@ -288,9 +288,9 @@ class ProfilesettingsAction extends SettingsAction Profile::maxBio()), Profile::maxBio())); return; - } else if (!is_null($location) && mb_strlen($location) > 255) { + } else if (!is_null($location) && mb_strlen($location) > 191) { // TRANS: Validation error in form for profile settings. - $this->showForm(_('Location is too long (maximum 255 characters).')); + $this->showForm(_('Location is too long (maximum 191 characters).')); return; } else if (is_null($timezone) || !in_array($timezone, DateTimeZone::listIdentifiers())) { // TRANS: Validation error in form for profile settings. -- 2.39.5