api: add a few logical spaces

This commit is contained in:
Andrew Dolgov 2013-04-02 09:34:32 +04:00
parent 7461774f0f
commit ffd0786416
1 changed files with 2 additions and 0 deletions

View File

@ -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"]);