diff options
author | Urban Müller | 2011-06-06 17:28:47 +0000 |
---|---|---|
committer | Urban Müller | 2011-06-06 17:28:47 +0000 |
commit | 8ec008f48910cba508a4bd5a574034f957e7301b (patch) | |
tree | 59e6f1fc3a3067f2b61e94d214b110d87eb60c52 /it_debug.class | |
parent | edce8818a1763769129c458218177436c0005ee2 (diff) | |
download | itools-8ec008f48910cba508a4bd5a574034f957e7301b.tar.gz itools-8ec008f48910cba508a4bd5a574034f957e7301b.tar.bz2 itools-8ec008f48910cba508a4bd5a574034f957e7301b.zip |
use plain output if plain html type
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
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']) { |