mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 08:31:29 +00:00
completeLabels: use prepare() not query()
This commit is contained in:
@@ -334,7 +334,7 @@ class RPC extends Handler_Protected {
|
|||||||
function completeLabels() {
|
function completeLabels() {
|
||||||
$search = $_REQUEST["search"];
|
$search = $_REQUEST["search"];
|
||||||
|
|
||||||
$sth = $this->pdo->query("SELECT DISTINCT caption FROM
|
$sth = $this->pdo->prepare("SELECT DISTINCT caption FROM
|
||||||
ttrss_labels2
|
ttrss_labels2
|
||||||
WHERE owner_uid = ? AND
|
WHERE owner_uid = ? AND
|
||||||
LOWER(caption) LIKE LOWER(?) ORDER BY caption
|
LOWER(caption) LIKE LOWER(?) ORDER BY caption
|
||||||
|
|||||||
Reference in New Issue
Block a user