]> git.wh0rd.org Git - tt-rss.git/commitdiff
import_export: limit and offset don't play nice with generic PDO placeholders
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 28 May 2018 13:49:39 +0000 (16:49 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 28 May 2018 13:49:39 +0000 (16:49 +0300)
plugins/import_export/init.php

index 31e7dd0e27ad3a9b27c2fbef7f5660427d11d3ff..a3413f307493fbf75387d98274f5415de3283ed8 100755 (executable)
@@ -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']);