diff options
author | jim-p <jimp@pfsense.org> | 2011-11-23 10:56:41 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-11-23 10:56:41 -0500 |
commit | 34d0f40c407de2d5ac37209314d7d4570626aa9e (patch) | |
tree | fc126da0e35c339c8da709f768f286675498fcf8 | |
parent | dc43ff1eaa74ddbdc8fbdf4b088cbd487631e8c7 (diff) | |
download | pfsense-34d0f40c407de2d5ac37209314d7d4570626aa9e.zip pfsense-34d0f40c407de2d5ac37209314d7d4570626aa9e.tar.gz |
Clear the PHP errors when 'no' is pressed also.
-rwxr-xr-x | usr/local/www/crash_reporter.php | 2 |
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 { |