summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-27 07:51:32 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-02-27 07:51:53 -0300
commit90435b203e6a4adc35e582511ddf122a4fe699fa (patch)
tree296bff20f7a13192bf6e29c3c2dad766463a86ee
parent7f43c1168774f2caa9ec92b85705df71bc4834d0 (diff)
downloadpfsense-90435b203e6a4adc35e582511ddf122a4fe699fa.zip
pfsense-90435b203e6a4adc35e582511ddf122a4fe699fa.tar.gz
Fix #3486, delete /var/crash content when click 'No'
-rwxr-xr-xusr/local/www/crash_reporter.php2
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: /");
OpenPOWER on IntegriCloud