From: Evan Prodromou Date: Sat, 17 May 2008 17:50:22 +0000 (-0400) Subject: fixup some nickname handling X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6e0cfd908b68897195e2b40916fab4268edd67d9;p=quix0rs-gnu-social.git fixup some nickname handling darcs-hash:20080517175022-84dde-475a63e7f8d400c508d259fcbc9959588720316b.gz --- diff --git a/actions/register.php b/actions/register.php index 1f470ccc0d..2b41b6a77a 100644 --- a/actions/register.php +++ b/actions/register.php @@ -38,7 +38,7 @@ class RegisterAction extends Action { $password = $this->arg('password'); $confirm = $this->arg('confirm'); $email = $this->arg('email'); - + # Input scrubbing $nickname = common_canonical_nickname($nickname); diff --git a/lib/common.php b/lib/common.php index 3e33896a10..b6e01a0962 100644 --- a/lib/common.php +++ b/lib/common.php @@ -240,7 +240,7 @@ function common_current_user() { # get canonical version of nickname for comparison function common_canonical_nickname($nickname) { # XXX: UTF-8 canonicalization (like combining chars) - return strtolower($nickname); + return $nickname; } # get canonical version of email for comparison