diff options
Diffstat (limited to 'config/pfblockerng/pfblockerng_log.php')
-rw-r--r-- | config/pfblockerng/pfblockerng_log.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/config/pfblockerng/pfblockerng_log.php b/config/pfblockerng/pfblockerng_log.php index fc452032..339daca0 100644 --- a/config/pfblockerng/pfblockerng_log.php +++ b/config/pfblockerng/pfblockerng_log.php @@ -181,15 +181,9 @@ if (isset($_POST['file'])) { if (isset($_POST['logFile'])) { $s_logfile = $_POST['logFile']; - # Clear log + # Clear selected file if (isset($_POST['clear'])) { - if (is_file($s_logfile)) { - # Only allow clearing of 'log' files - $ext = pathinfo($s_logfile, PATHINFO_EXTENSION); - if ($ext == "log") { - unlink_if_exists($s_logfile); - } - } + unlink_if_exists($s_logfile); } # Download log |