From 6ec220c0c59868c86a40cc8373fdea32879f7cb5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 22 Sep 2013 12:13:24 +0200 Subject: duser_fluxbb: Replace like with equals We don't use wildcards so we don't need like. Signed-off-by: Florian Pritz --- application/libraries/Duser/drivers/Duser_fluxbb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application') diff --git a/application/libraries/Duser/drivers/Duser_fluxbb.php b/application/libraries/Duser/drivers/Duser_fluxbb.php index b32e2ac8e..1790e830b 100644 --- a/application/libraries/Duser/drivers/Duser_fluxbb.php +++ b/application/libraries/Duser/drivers/Duser_fluxbb.php @@ -23,7 +23,7 @@ class Duser_fluxbb extends Duser_Driver { $query = $this->CI->db->query(' SELECT username, id FROM '.$this->config['database'].'.users - WHERE username LIKE ? AND password = ? + WHERE username = ? AND password = ? ', array($username, sha1($password)))->row_array(); if (!empty($query)) { @@ -41,7 +41,7 @@ class Duser_fluxbb extends Duser_Driver { $query = $this->CI->db->query(' SELECT id FROM '.$this->config['database'].'.users - WHERE username LIKE ? + WHERE username = ? ', array($username)); if ($query->num_rows() > 0) { -- cgit v1.2.3-24-g4f1b