mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Magic Hash 취약점으로 인한 무단 로그인 방지
This commit is contained in:
parent
17f764e7e0
commit
9566e1ab83
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ class DBMysql extends DB
|
|||
$query = sprintf("select password('%s') as password, old_password('%s') as old_password", $this->addQuotes($password), $this->addQuotes($password));
|
||||
$result = $this->_query($query);
|
||||
$tmp = $this->_fetch($result);
|
||||
if($tmp->password == $saved_password || $tmp->old_password == $saved_password)
|
||||
if($tmp->password === $saved_password || $tmp->old_password === $saved_password)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue