From: Andrew Dolgov Date: Tue, 25 Nov 2014 10:45:21 +0000 (+0300) Subject: api: allow requesting headlines as if client supports iframe sandboxing X-Git-Tag: 1.15~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9997b38e3eada4d079491110c3bc9f11b76e693b;p=tt-rss.git api: allow requesting headlines as if client supports iframe sandboxing --- diff --git a/classes/api.php b/classes/api.php index 730e20ab..b9b1a7aa 100644 --- a/classes/api.php +++ b/classes/api.php @@ -2,7 +2,7 @@ class API extends Handler { - const API_LEVEL = 9; + const API_LEVEL = 10; const STATUS_OK = 0; const STATUS_ERR = 1; @@ -201,6 +201,9 @@ class API extends Handler { $sanitize_content = !isset($_REQUEST["sanitize"]) || sql_bool_to_bool($_REQUEST["sanitize"]); $force_update = sql_bool_to_bool($_REQUEST["force_update"]); + $has_sandbox = sql_bool_to_bool($_REQUEST["has_sandbox"]); + + $_SESSION['hasSandbox'] = $has_sandbox; $override_order = false; switch ($_REQUEST["order_by"]) {