summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2009-10-06 12:29:30 +0000
committerUrban Müller2009-10-06 12:29:30 +0000
commitdc1fd16103595e62ffb9821fee67e35cc1bc5c81 (patch)
tree03265ab09ef6230100f1f84747d88641edfb2dfe /it.class
parent02e27747f8a92cbf047606d3cf9e208e925fe004 (diff)
downloaditools-dc1fd16103595e62ffb9821fee67e35cc1bc5c81.tar.gz
itools-dc1fd16103595e62ffb9821fee67e35cc1bc5c81.tar.bz2
itools-dc1fd16103595e62ffb9821fee67e35cc1bc5c81.zip
make superglobals machine readable
Diffstat (limited to 'it.class')
-rw-r--r--it.class8
1 files changed, 4 insertions, 4 deletions
diff --git a/it.class b/it.class
index 1ce92de..6a11c57 100644
--- a/it.class
+++ b/it.class
@@ -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);
}