diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-27 07:51:32 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-27 07:51:53 -0300 |
commit | 90435b203e6a4adc35e582511ddf122a4fe699fa (patch) | |
tree | 296bff20f7a13192bf6e29c3c2dad766463a86ee /usr/local/www | |
parent | 7f43c1168774f2caa9ec92b85705df71bc4834d0 (diff) | |
download | pfsense-90435b203e6a4adc35e582511ddf122a4fe699fa.zip pfsense-90435b203e6a4adc35e582511ddf122a4fe699fa.tar.gz |
Fix #3486, delete /var/crash content when click 'No'
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/crash_reporter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php index 978e372..956db05 100755 --- a/usr/local/www/crash_reporter.php +++ b/usr/local/www/crash_reporter.php @@ -124,7 +124,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); echo "Could not find any crash files."; } } else if(gettext($_POST['Submit']) == "No") { - array_map('unlink', glob("rm /var/crash/*")); + array_map('unlink', glob("/var/crash/*")); // Erase the contents of the PHP error log fclose(fopen("/tmp/PHP_errors.log", 'w')); Header("Location: /"); |