summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-06 13:11:45 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-06 13:11:52 -0500
commit812ed2bb4cc294c4a99407abf4e23250f4e4586d (patch)
treedff92d4cef61ad135e85f9aa15ba9c4a1d78971e /usr/local/www/index.php
parent49c8f9640f1ae394050f2163c7be6421121a2f26 (diff)
downloadpfsense-812ed2bb4cc294c4a99407abf4e23250f4e4586d.zip
pfsense-812ed2bb4cc294c4a99407abf4e23250f4e4586d.tar.gz
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.
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index c1fdc26..1ea8e5b 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -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;
OpenPOWER on IntegriCloud