disable application/xml content-type for op=view zoom mode

This commit is contained in:
Andrew Dolgov 2008-12-16 10:24:48 +01:00
parent 37ce028c12
commit fac5e7d1ed
1 changed files with 3 additions and 1 deletions

View File

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