summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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