From: Andrew Dolgov Date: Tue, 2 Apr 2013 05:34:32 +0000 (+0400) Subject: api: add a few logical spaces X-Git-Tag: 1.7.6~39 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ffd0786416271a00638c8becc2974d96221ec642;p=tt-rss.git api: add a few logical spaces --- diff --git a/classes/api.php b/classes/api.php index f0f94369..902cb085 100644 --- a/classes/api.php +++ b/classes/api.php @@ -198,6 +198,7 @@ class API extends Handler { $since_id = (int)db_escape_string($this->link, $_REQUEST["since_id"]); $include_nested = sql_bool_to_bool($_REQUEST["include_nested"]); $sanitize_content = true; + $override_order = false; switch ($_REQUEST["order_by"]) { case "date_reverse": @@ -207,6 +208,7 @@ class API extends Handler { $override_order = "updated DESC"; break; } + /* do not rely on params below */ $search = db_escape_string($this->link, $_REQUEST["search"]);