Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
fix(): comparison for an case-insensitive match on username #4
Browse files Browse the repository at this point in the history
  • Loading branch information
hardware authored Nov 4, 2018
1 parent 3e45a42 commit 167be62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/importer/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit 167be62

Please sign in to comment.