Browse Source

query feed headlines: fix limit/offset

Andrew Dolgov 6 years ago
parent
commit
7fc303e6ab
1 changed files with 2 additions and 2 deletions
  1. 2 2
      classes/feeds.php

+ 2 - 2
classes/feeds.php

@@ -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 = "";
 		}