summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-11-23 10:56:41 -0500
committerjim-p <jimp@pfsense.org>2011-11-23 10:56:41 -0500
commit34d0f40c407de2d5ac37209314d7d4570626aa9e (patch)
treefc126da0e35c339c8da709f768f286675498fcf8 /usr/local/www/crash_reporter.php
parentdc43ff1eaa74ddbdc8fbdf4b088cbd487631e8c7 (diff)
downloadpfsense-34d0f40c407de2d5ac37209314d7d4570626aa9e.zip
pfsense-34d0f40c407de2d5ac37209314d7d4570626aa9e.tar.gz
Clear the PHP errors when 'no' is pressed also.
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-xusr/local/www/crash_reporter.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index a8d1345..3cbc51f 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -123,6 +123,8 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors);
}
} else if(gettext($_POST['Submit']) == "No") {
exec("rm /var/crash/*");
+ // Erase the contents of the PHP error log
+ fclose(fopen("/tmp/PHP_errors.log", 'w'));
Header("Location: /");
exit;
} else {
OpenPOWER on IntegriCloud