From 8b1d6b846a1697847a40e9368151e4a2d9864a10 Mon Sep 17 00:00:00 2001 From: Mausern Testbruker Date: Mon, 29 Aug 2011 20:46:53 +0200 Subject: [PATCH] strtolower on usernames in migration. --- inside/migration/form.php | 2 +- inside/migration/username_available.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inside/migration/form.php b/inside/migration/form.php index 65dc8f2..c17d89b 100644 --- a/inside/migration/form.php +++ b/inside/migration/form.php @@ -9,7 +9,7 @@ $current_username = getCurrentUserName();
*
-
+
*

*
diff --git a/inside/migration/username_available.php b/inside/migration/username_available.php index d906581..3d28044 100644 --- a/inside/migration/username_available.php +++ b/inside/migration/username_available.php @@ -8,10 +8,11 @@ $current_username = getCurrentUserName(); /* Check for username availability. * - You are the owner of the username (the logged in user). * - The username is not allready taken. */ -if ( ! user_exists($_GET['username']) || $_GET['username'] == $current_username) { +if ( ! user_exists($_GET['username']) || $_GET['username'] == strtolower($current_username)) { echo "true"; } else { echo "false"; } + ?>