diff options
author | Urban Müller | 2014-08-26 14:22:08 +0200 |
---|---|---|
committer | Urban Müller | 2014-08-26 14:22:08 +0200 |
commit | 4d919c48d99d3ec3efcff01d37749e75071314e2 (patch) | |
tree | bd0893796003d42d0052cd264c611343bdf43f8b | |
parent | 9f45fb61ccd24be600fde3a84dcd63ec2ba6f67b (diff) | |
download | itools-4d919c48d99d3ec3efcff01d37749e75071314e2.tar.gz itools-4d919c48d99d3ec3efcff01d37749e75071314e2.tar.bz2 itools-4d919c48d99d3ec3efcff01d37749e75071314e2.zip |
allow html in .json files (typically debugged in browser)
-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 fe2cd38..b7df95b 100644 --- a/it_debug.class +++ b/it_debug.class @@ -78,7 +78,7 @@ static function srcline($stackoffs = 0) */ static function dump($args) { - if ((preg_match('/csv|json|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)|application/#', headers_list()) || $GLOBALS['debug_edplain']) && !$GLOBALS['debug_edhtml']) + if ((preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)|application/#', headers_list()) || $GLOBALS['debug_edplain']) && !$GLOBALS['debug_edhtml']) $plain = 1; else if ($_SERVER['REMOTE_ADDR']) list($blue, $noblue, $htmlok) = array("<span style='color:#00c'>", "</span>", 1); |