mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
修正waring 导致的路径泄漏
This commit is contained in:
parent
0d30d33aa3
commit
5dc5cfb906
@ -124,6 +124,10 @@ class Widget_User extends Typecho_Widget
|
||||
->where((strpos($name, '@') ? 'mail' : 'name') . ' = ?', $name)
|
||||
->limit(1));
|
||||
|
||||
if (empty($user)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$hashValidate = $this->pluginHandle()->trigger($hashPluggable)->hashValidate($password, $user['password']);
|
||||
if (!$hashPluggable) {
|
||||
$hashValidate = Typecho_Common::hashValidate($password, $user['password']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user