Explorar o código

Merge branch 'fix-pdo-mail-plugin' of JustAMacUser/tt-rss into master

fox %!s(int64=6) %!d(string=hai) anos
pai
achega
2395dc3b04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/mail/init.php

+ 1 - 1
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()) {