diff options
author | Ermal <eri@pfsense.org> | 2012-07-09 14:16:53 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-09 14:16:53 +0000 |
commit | 1891313532c369d836404ce68cc08a85cbe6e3f2 (patch) | |
tree | 10b7be48a7eb8e0a477158601012eef01cfc689a /config | |
parent | a59d6dbc05cbe916b85cf08ad3c6560da108683f (diff) | |
download | pfsense-packages-1891313532c369d836404ce68cc08a85cbe6e3f2.tar.gz pfsense-packages-1891313532c369d836404ce68cc08a85cbe6e3f2.tar.bz2 pfsense-packages-1891313532c369d836404ce68cc08a85cbe6e3f2.zip |
Some small fixes to cleanup
Diffstat (limited to 'config')
-rw-r--r-- | config/snort/snort_blocked.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php index c5c0e478..aedb3dc0 100644 --- a/config/snort/snort_blocked.php +++ b/config/snort/snort_blocked.php @@ -80,7 +80,7 @@ if ($_POST['download']) file_put_contents("/tmp/snort_blocked/snort_block.pf", "{$fileline}\n", FILE_APPEND); } - exec("/usr/bin/tar cfz /tmp/snort_blocked_{$save_date}.tar.gz /tmp/snort_blocked"); + exec("/usr/bin/tar cf /tmp/{$file_name} /tmp/snort_blocked"); if(file_exists("/tmp/{$file_name}")) { header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\n"); @@ -92,8 +92,8 @@ if ($_POST['download']) header("Content-disposition: attachment; filename = {$file_name}"); readfile("/tmp/{$file_name}"); ob_end_clean(); //importanr or other post will fail - @unlink("/tmp/snort_blocked_{$save_date}.tar.gz"); - @unlink("/tmp/snort_blocked/snort_block.pf"); + @unlink("/tmp/{$file_name}"); + exec("/bin/rm -fr /tmp/snort_blocked"); } else $savemsg = "An error occurred while createing archive"; } else |