From dc1fd16103595e62ffb9821fee67e35cc1bc5c81 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 6 Oct 2009 12:29:30 +0000 Subject: make superglobals machine readable --- it.class | 8 ++++---- 1 file 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); } -- cgit v1.2.3