From: Andrew Dolgov Date: Mon, 20 Nov 2017 05:48:18 +0000 (+0300) Subject: fix possible sql injection in public/forgotpass X-Git-Tag: 17.12~113 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2352c320c2ed34ec7df1ad22f0c55a1b26489815;p=tt-rss.git fix possible sql injection in public/forgotpass --- diff --git a/classes/handler/public.php b/classes/handler/public.php index d3c854ae..ec41ddb8 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -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 @@ -1018,4 +1018,4 @@ class Handler_Public extends Handler { } } } -?> \ No newline at end of file +?>