summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-01-19 14:07:59 +0400
committerAndrew Dolgov <[email protected]>2012-01-19 14:07:59 +0400
commit3e4af5b0b3cc36a3ada907ac67f1b569399ada1b (patch)
tree1579c49d2f5d0d678284d787fd7cc432cff70e42 /include
parent0cf816377f30b4a8d2b19074cd6a21b0b534d53d (diff)
api: add search parameters to getHeadlines (bump API level)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/functions.php b/include/functions.php
index e35d7c1c6..f0b90b6f6 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -4388,13 +4388,8 @@
function api_get_headlines($link, $feed_id, $limit, $offset,
$filter, $is_cat, $show_excerpt, $show_content, $view_mode, $order,
- $include_attachments, $since_id) {
-
- /* do not rely on params below */
-
- $search = db_escape_string($_REQUEST["search"]);
- $search_mode = db_escape_string($_REQUEST["search_mode"]);
- $match_on = db_escape_string($_REQUEST["match_on"]);
+ $include_attachments, $since_id,
+ $search = "", $search_mode = "", $match_on = "") {
$qfh_ret = queryFeedHeadlines($link, $feed_id, $limit,
$view_mode, $is_cat, $search, $search_mode, $match_on,