From 167be6234d489383214d66f978da7e142add7dfc Mon Sep 17 00:00:00 2001 From: hardware Date: Mon, 5 Nov 2018 00:08:52 +0100 Subject: [PATCH] fix(): comparison for an case-insensitive match on username #4 --- scripts/importer/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/importer/users.php b/scripts/importer/users.php index 67e6db4..a42ced4 100644 --- a/scripts/importer/users.php +++ b/scripts/importer/users.php @@ -31,7 +31,7 @@ if(!preg_match('/^[a-zA-Z0-9-_]+$/', $user['username'])) { $username = Slugify($user['username'], ''); - $query = RunPreparedQuery($dbFluxbb, [':username' => $username], "SELECT id FROM {$dbFluxbbPrefix}users WHERE BINARY username = :username"); + $query = RunPreparedQuery($dbFluxbb, [':username' => $username], "SELECT id FROM {$dbFluxbbPrefix}users WHERE username = :username"); $row = $query->fetch(PDO::FETCH_ASSOC); if($row['id']) {