From 8ec008f48910cba508a4bd5a574034f957e7301b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 6 Jun 2011 17:28:47 +0000 Subject: use plain output if plain html type --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 0f43edb..b653d22 100644 --- a/it_debug.class +++ b/it_debug.class @@ -80,7 +80,7 @@ function srcline($stackoffs = 0) */ function dump($args) { - if (preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF'])) + if (preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)#', headers_list())) $plain = 1; else if ($_SERVER['REMOTE_ADDR']) { -- cgit v1.2.3