summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/register.php2
-rw-r--r--lib/util.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index d2e54b634..d41eb9490 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -54,7 +54,7 @@ class RegisterAction extends Action {
} else if (!Validate::string($nickname, array('min_length' => 1,
'max_length' => 64,
'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
- $this->show_form(_t('Nickname must have only letters and numbers and no spaces.'));
+ $this->show_form(_t('Nickname must have only lowercase letters and numbers and no spaces.'));
} else if ($this->nickname_exists($nickname)) {
$this->show_form(_t('Nickname already exists.'));
} else if ($this->email_exists($email)) {
diff --git a/lib/util.php b/lib/util.php
index 614e9f070..900149fc2 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -385,7 +385,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 $nickname;
+ return strtolower($nickname);
}
# get canonical version of email for comparison