From: Andrew Dolgov Date: Tue, 16 Dec 2008 09:24:48 +0000 (+0100) Subject: disable application/xml content-type for op=view zoom mode X-Git-Tag: 1.2.30~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fac5e7d1ed9e5abf4fd9fc9b636ecbdb070c922d;p=tt-rss.git disable application/xml content-type for op=view zoom mode --- diff --git a/backend.php b/backend.php index b298ec73..13c470a9 100644 --- a/backend.php +++ b/backend.php @@ -49,10 +49,12 @@ init_connection($link); $op = $_REQUEST["op"]; + $mode = $_REQUEST["mode"]; $print_exec_time = false; - if ((!$op || $op == "rpc" || $op == "rss" || $op == "view" || + if ((!$op || $op == "rpc" || $op == "rss" || + ($op == "view" && $mode != "zoom") || $op == "digestSend" || $op == "viewfeed" || $op == "publish" || $op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) { header("Content-Type: application/xml; charset=utf-8");