修正waring 导致的路径泄漏

This commit is contained in:
祁宁 2014-03-10 21:14:50 +08:00
parent 0d30d33aa3
commit 5dc5cfb906

View File

@ -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']);