瀏覽代碼

otpenable: use pdo prepare()

Andrew Dolgov 6 年之前
父節點
當前提交
e4291ba12f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      classes/pref/prefs.php

+ 1 - 1
classes/pref/prefs.php

@@ -888,7 +888,7 @@ class Pref_Prefs extends Handler_Protected {
 
 		if ($authenticator->check_password($_SESSION["uid"], $password)) {
 
-			$sth = $this->pdo->query("SELECT salt
+			$sth = $this->pdo->prepare("SELECT salt
 				FROM ttrss_users
 				WHERE id = ?");
 			$sth->execute([$_SESSION['uid']]);