From 33c850f5ab7263466692d0ba9a43d3a471365040 Mon Sep 17 00:00:00 2001 From: Dave Z Date: Mon, 1 Jan 2018 13:33:58 -0500 Subject: [PATCH] Fix PDO query in mail plugin. --- plugins/mail/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mail/init.php b/plugins/mail/init.php index 045fd798..7da87ed5 100644 --- a/plugins/mail/init.php +++ b/plugins/mail/init.php @@ -86,7 +86,7 @@ class Mail extends Plugin { print_hidden("method", "sendEmail"); $sth = $this->pdo->prepare("SELECT email, full_name FROM ttrss_users WHERE - id = " . $_SESSION["uid"]); + id = ?"; $sth->execute([$_SESSION['uid']]); if ($row = $sth->fetch()) { -- 2.39.5