Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 42d9b35

Browse files
committed
SQL Injection fix
1 parent 362eabd commit 42d9b35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/common/Auth.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ public static function ProcessLogin($useridoremail, $password)
255255
{
256256
$emailaddress = DB::escape($useridoremail);
257257
$sql = 'SELECT * FROM ' . TABLE_PREFIX . 'pilots
258-
WHERE email=\''.$useridoremail.'\'';
259-
}
258+
WHERE email=\''.$emailaddress.'\'';
259+
}
260260
# They're loggin in with a pilot id
261261
elseif(preg_match('/^([A-Za-z]*)(.*)(\d*)/', $useridoremail, $matches)>0)
262262
{
@@ -273,7 +273,7 @@ public static function ProcessLogin($useridoremail, $password)
273273
return false;
274274
}
275275
}
276-
276+
277277
$password = DB::escape($password);
278278
$userinfo = DB::get_row($sql);
279279

0 commit comments

Comments
 (0)