From ffd0786416271a00638c8becc2974d96221ec642 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Apr 2013 09:34:32 +0400 Subject: [PATCH] api: add a few logical spaces --- classes/api.php | 2 ++ 1 file changed, 2 insertions(+) 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"]); -- 2.39.5