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:32 -0300 |
commit | d7d6e57a228de0d855b12b3bb7eb0f2a50aef108 (patch) | |
tree | cc22fdbaff2860a486ad301eb271e8f1bf4752b1 /usr | |
parent | 2124fad4d0bafd6e0d47eff7251136cd6d1ec9cc (diff) | |
download | pfsense-d7d6e57a228de0d855b12b3bb7eb0f2a50aef108.zip pfsense-d7d6e57a228de0d855b12b3bb7eb0f2a50aef108.tar.gz |
Fix #3486, delete /var/crash content when click 'No'
Diffstat (limited to 'usr')
-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 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: /"); |