summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2016-08-21 21:46:57 -0400
committerRenato Botelho <garga@FreeBSD.org>2016-08-23 10:40:44 -0300
commit2a48b0acde00dcc26191bad7e8ac333861754d93 (patch)
tree0732e7711c0a353614759f534b90941e24c74641
parentba0c6caf2fa53ae28063726f3290c1a0431684b9 (diff)
downloadFreeBSD-ports-2a48b0acde00dcc26191bad7e8ac333861754d93.zip
FreeBSD-ports-2a48b0acde00dcc26191bad7e8ac333861754d93.tar.gz
Update pfblockerng.widget.php
(cherry picked from commit 89010484245bd65033e51123d27e6852762cae83)
-rw-r--r--net/pfSense-pkg-pfBlockerNG/files/usr/local/www/widgets/widgets/pfblockerng.widget.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/pfSense-pkg-pfBlockerNG/files/usr/local/www/widgets/widgets/pfblockerng.widget.php b/net/pfSense-pkg-pfBlockerNG/files/usr/local/www/widgets/widgets/pfblockerng.widget.php
index 6b5ca76..45efa01 100644
--- a/net/pfSense-pkg-pfBlockerNG/files/usr/local/www/widgets/widgets/pfblockerng.widget.php
+++ b/net/pfSense-pkg-pfBlockerNG/files/usr/local/www/widgets/widgets/pfblockerng.widget.php
@@ -60,7 +60,7 @@ foreach ($wglobal_array as $type => $value) {
}
// Save widget customizations
-if (isset($_POST['pfb_submit'])) {
+if ($_POST && isset($_POST['pfb_submit'])) {
$pfb['wglobal']['widget-popup'] = htmlspecialchars($_POST['pfb_popup']) ?: 'off';
$pfb['wglobal']['widget-sortcolumn'] = htmlspecialchars($_POST['pfb_sortcolumn']) ?: 'none';
$pfb['wglobal']['widget-sortdir'] = htmlspecialchars($_POST['pfb_sortdir']) ?: 'asc';
@@ -78,20 +78,20 @@ if (isset($_POST['pfb_submit'])) {
}
// Ackwnowlege failed downloads
-if (isset($_POST['pfblockerngack'])) {
+if ($_POST && $_POST['pfblockerngack']) {
exec("{$pfb['sed']} -i '' 's/FAIL/Fail/g' {$pfb['errlog']}");
header("Location: /");
exit(0);
}
// Called by Ajax to update table contents
-if (isset($_GET['getNewCounts'])) {
+if ($_GET && $_GET['getNewCounts']) {
pfBlockerNG_get_table('js');
return;
}
// Reset DNSBL Alias packet counters
-if (isset($_POST['pfblockerngdnsblclear'])) {
+if ($_POST && $_POST['pfblockerngdnsblclear']) {
$dnsbl_info = array_map('str_getcsv', @file("{$pfb['dnsbl_info']}"));
if (!empty ($dnsbl_info)) {
$handle = @fopen("{$pfb['dnsbl_info']}", 'w');
OpenPOWER on IntegriCloud