Skip to content
Snippets Groups Projects
Commit bd3c6723 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

api, add sanitize to getHeadlines (defaults to true)

parent dcab541d
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
class API extends Handler {
const API_LEVEL = 6;
const API_LEVEL = 7;
const STATUS_OK = 0;
const STATUS_ERR = 1;
......@@ -197,7 +197,8 @@ class API extends Handler {
$include_attachments = sql_bool_to_bool($_REQUEST["include_attachments"]);
$since_id = (int)$this->dbh->escape_string($_REQUEST["since_id"]);
$include_nested = sql_bool_to_bool($_REQUEST["include_nested"]);
$sanitize_content = true;
$sanitize_content = !isset($_REQUEST["sanitize"]) ||
sql_bool_to_bool($_REQUEST["sanitize"]);
$override_order = false;
switch ($_REQUEST["order_by"]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment