fix possible sql injection in public/forgotpass

This commit is contained in:
Andrew Dolgov 2017-11-20 08:48:18 +03:00
parent 9d930af9e1
commit 2352c320c2
1 changed files with 2 additions and 2 deletions

View File

@ -688,7 +688,7 @@ class Handler_Public extends Handler {
@$method = $_POST['method'];
if ($hash) {
$login = $_REQUEST["login"];
$login = $this->dbh->escape_string($_REQUEST["login"]);
if ($login) {
$result = $this->dbh->query("SELECT id, resetpass_token FROM ttrss_users