Redirect to crash reporter if a crash exists for processing. The crash reporter will either upload the data per the operators consent and or delete the data afterwards and redirect back.

This commit is contained in:
Scott Ullrich 2011-02-06 13:11:45 -05:00
parent 49c8f9640f
commit 812ed2bb4c

View File

@ -42,6 +42,14 @@
##|*MATCH=index.php*
##|-PRIV
$crash = glob("/var/crash/*");
if(is_array($crash)) {
if(count($crash) > 0) {
Header("Location: /crash_reporter.php");
exit;
}
}
// Turn off csrf for the dashboard
$nocsrf = true;