From: Andrew Dolgov Date: Mon, 28 May 2018 13:49:39 +0000 (+0300) Subject: import_export: limit and offset don't play nice with generic PDO placeholders X-Git-Tag: 18.8~26 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=636164301fa425a40992bc05a70e7cd8e8946163 import_export: limit and offset don't play nice with generic PDO placeholders --- diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index 31e7dd0e..a3413f30 100755 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -151,9 +151,9 @@ class Import_Export extends Plugin implements IHandler { (marked = true OR feed_id IS NULL) AND ref_id = ttrss_entries.id AND ttrss_user_entries.owner_uid = ? - ORDER BY ttrss_entries.id LIMIT ? OFFSET ?"); + ORDER BY ttrss_entries.id LIMIT $limit OFFSET $offset"); - $sth->execute([$_SESSION['uid'], $limit, $offset]); + $sth->execute([$_SESSION['uid']]); $exportname = sha1($_SESSION['uid'] . $_SESSION['login']);