summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 9d2c1da..9e5efb7 100644
--- a/it.class
+++ b/it.class
@@ -292,7 +292,7 @@ static function error($p = array(), $extra = null)
$trace = $p['trace'] ?: array_slice(debug_backtrace(0), $p['backtraceskip']);
$mediumstack = it_debug::backtrace(['trace' => $trace, 'format' => "medium"]);
$longstack = substr(it_debug::backtrace(['trace' => $trace, 'format' => "long"]), 0, 200000); # use substr() because data might be binary
- $reqbody = it::file_get_contents("php://input");
+ $reqbody = $_POST ? "" : it::file_get_contents("php://input");
$body .= ($traceline and $t = it::exec('grep -h {0} `ls 2>/dev/null {1}/log/alertlog-*|tail -3` /dev/null 2>/dev/null | grep ^2 | cut -d : -f 1-2 | sort | uniq -c | tail -10', $traceline, $home)) ? "Histogram: (last 10 affected minutes in 3 days)\n$t\n" : "";
$body .= $mediumstack ? "Stack:\n " . it::replace(["\n" => "\n "], $mediumstack) . "\n" : "";