mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 12:05:57 +00:00
fix possible sql injection in public/forgotpass
This commit is contained in:
@@ -688,7 +688,7 @@ class Handler_Public extends Handler {
|
|||||||
@$method = $_POST['method'];
|
@$method = $_POST['method'];
|
||||||
|
|
||||||
if ($hash) {
|
if ($hash) {
|
||||||
$login = $_REQUEST["login"];
|
$login = $this->dbh->escape_string($_REQUEST["login"]);
|
||||||
|
|
||||||
if ($login) {
|
if ($login) {
|
||||||
$result = $this->dbh->query("SELECT id, resetpass_token FROM ttrss_users
|
$result = $this->dbh->query("SELECT id, resetpass_token FROM ttrss_users
|
||||||
@@ -1018,4 +1018,4 @@ class Handler_Public extends Handler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user