X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fregister.php;h=5d7a8ce690d5fa88655f2a6c0f5fa2596c6c478e;hb=5caeeabfc266985c8ac2cc19a2143092f9e1b5fd;hp=df64196da2c91f057bbc2b8c32cae13a74b6e975;hpb=e20c3e2b7c9a2af254227764fa6ef516ea98d0d7;p=quix0rs-gnu-social.git diff --git a/actions/register.php b/actions/register.php index df64196da2..5d7a8ce690 100644 --- a/actions/register.php +++ b/actions/register.php @@ -167,13 +167,13 @@ class RegisterAction extends Action 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 (strlen($password) < 6) { @@ -426,11 +426,13 @@ class RegisterAction extends Action } $this->elementStart('li'); $this->element('input', $attrs); + $this->elementStart('label', array('class' => 'checkbox', 'for' => 'license')); $this->text(_('My text and files are available under ')); $this->element('a', array('href' => common_config('license', 'url')), common_config('license', 'title'), _("Creative Commons Attribution 3.0")); $this->text(_(' except this private data: password, '. - 'email address, IM address, phone number.')); + 'email address, IM address, and phone number.')); + $this->elementEnd('label'); $this->elementEnd('li'); $this->elementEnd('ul'); $this->submit('submit', _('Register'));