aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-12 08:00:06 +0000
committerErmal <eri@pfsense.org>2012-07-12 08:00:06 +0000
commitf69b7c1c6c8e0a3970d37e6af6e5ec16948a8a8c (patch)
treece8d209d5dcf087ad44a5ebaf8cb0573c6ddb482 /config
parent311ee04dbf4a90a34c2f16fdf510eb642d41aff3 (diff)
downloadpfsense-packages-f69b7c1c6c8e0a3970d37e6af6e5ec16948a8a8c.tar.gz
pfsense-packages-f69b7c1c6c8e0a3970d37e6af6e5ec16948a8a8c.tar.bz2
pfsense-packages-f69b7c1c6c8e0a3970d37e6af6e5ec16948a8a8c.zip
Fix barnyard saving
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort_barnyard.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php
index 5d3e9da1..17769ca8 100644
--- a/config/snort/snort_barnyard.php
+++ b/config/snort/snort_barnyard.php
@@ -77,8 +77,8 @@ if ($_POST) {
$natent = $pconfig;
$natent['barnyard_enable'] = $_POST['barnyard_enable'] ? 'on' : 'off';
- if ($_POST['barnyard_mysql']) $natent['barnyard_mysql'] = $_POST['barnyard_mysql']; unset($natent['barnyard_mysql']);
- if ($_POST['barnconfigpassthru']) $natent['barnconfigpassthru'] = base64_encode($_POST['barnconfigpassthru']); unset($natent['barnconfigpassthru']);
+ if ($_POST['barnyard_mysql']) $natent['barnyard_mysql'] = $_POST['barnyard_mysql']; else unset($natent['barnyard_mysql']);
+ if ($_POST['barnconfigpassthru']) $natent['barnconfigpassthru'] = base64_encode($_POST['barnconfigpassthru']); else unset($natent['barnconfigpassthru']);
if ($_POST['barnyard_enable'] == "on")
$natent['snortunifiedlog'] = 'on';
else