diff options
author | Urban Müller | 2009-10-06 12:29:30 +0000 |
---|---|---|
committer | Urban Müller | 2009-10-06 12:29:30 +0000 |
commit | dc1fd16103595e62ffb9821fee67e35cc1bc5c81 (patch) | |
tree | 03265ab09ef6230100f1f84747d88641edfb2dfe /it.class | |
parent | 02e27747f8a92cbf047606d3cf9e208e925fe004 (diff) | |
download | itools-dc1fd16103595e62ffb9821fee67e35cc1bc5c81.tar.gz itools-dc1fd16103595e62ffb9821fee67e35cc1bc5c81.tar.bz2 itools-dc1fd16103595e62ffb9821fee67e35cc1bc5c81.zip |
make superglobals machine readable
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -214,10 +214,10 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate $body .= $p['id'] ? "Filter: graceperiod={$p['graceperiod']} timewindow={$p['timewindow']}\n\n" : ""; $body .= "Time: " . it::date() . "\n\n"; $body .= $lastsentdebug; - $body .= $_GET ? "\$_GET: " . print_r($_GET, true) . "\n\n" : ""; - $body .= $_POST ? "\$_POST: " . print_r($_POST, true) . "\n\n" : ""; - $body .= $_COOKIE ? "\$_COOKIE: " . print_r($_COOKIE, true) . "\n\n" : ""; - $body .= $_SERVER ? "\$_SERVER: " . print_r($_SERVER, true) . "\n\n" : ""; + $body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : ""; + $body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : ""; + $body .= $_COOKIE ? "\$_COOKIE: " . var_export($_COOKIE, true) . "\n\n" : ""; + $body .= $_SERVER ? "\$_SERVER: " . var_export($_SERVER, true) . "\n\n" : ""; $body .= $fulltrace ? "Stack: " . print_r($fulltrace, true) . "\n\n" : ""; $body = it::replace(array('(pw|passw|password|secret)\] => .*' => '$1] => ********'), $body); } |