summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-15 18:07:35 +0400
committerAndrew Dolgov <[email protected]>2013-05-15 18:07:35 +0400
commitbd3c672320dfe9a47a88cb4b90758e674de35a31 (patch)
tree0e4cc609a7d88317172f307b582581c0cc0c13c7 /classes/api.php
parentdcab541d2c4c5ee35fb0ececac3a4223a1697e59 (diff)
api, add sanitize to getHeadlines (defaults to true)
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/api.php b/classes/api.php
index f5e4a0c5c..98721e45d 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -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"]) {