diff options
-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); } |