]> git.wh0rd.org Git - tt-rss.git/commitdiff
query feed headlines: fix limit/offset
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 1 Dec 2017 18:07:55 +0000 (21:07 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 1 Dec 2017 18:07:55 +0000 (21:07 +0300)
classes/feeds.php

index 25a1d2e14ed595585aca8b1dea90c680f2e75e23..a9f479a519d226f95ffc4b098bc9f2055054dbef 100755 (executable)
@@ -1869,7 +1869,7 @@ class Feeds extends Handler_Protected {
                }
 
                if ($limit > 0) {
-                       $limit_query_part = "LIMIT " . $pdo->quote($limit);
+                       $limit_query_part = "LIMIT " . (int)$limit;
                }
 
                $allow_archived = false;
@@ -2027,7 +2027,7 @@ class Feeds extends Handler_Protected {
                $content_query_part = "content, ";
 
                if ($limit_query_part) {
-                       $offset_query_part = "OFFSET " . $pdo->quote($offset);
+                       $offset_query_part = "OFFSET " . (int)$offset;
                } else {
                        $offset_query_part = "";
                }