summaryrefslogtreecommitdiffstats
path: root/usr
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:32 -0300
commitd7d6e57a228de0d855b12b3bb7eb0f2a50aef108 (patch)
treecc22fdbaff2860a486ad301eb271e8f1bf4752b1 /usr
parent2124fad4d0bafd6e0d47eff7251136cd6d1ec9cc (diff)
downloadpfsense-d7d6e57a228de0d855b12b3bb7eb0f2a50aef108.zip
pfsense-d7d6e57a228de0d855b12b3bb7eb0f2a50aef108.tar.gz
Fix #3486, delete /var/crash content when click 'No'
Diffstat (limited to 'usr')
-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 075bab5..92ca317 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