aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_edit_hat_data.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-01-13 10:51:45 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-01-13 10:51:45 -0500
commitaf4460ff3f18dff763e0a493ac71be37dd814435 (patch)
tree357bc9cf44654cf1ac366e9244f28d2b8a014b9f /config/snort/snort_edit_hat_data.php
parent8e3a6c43552fa36df9dd19a0dd0db312add43d11 (diff)
downloadpfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.tar.gz
pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.tar.bz2
pfsense-packages-af4460ff3f18dff763e0a493ac71be37dd814435.zip
Incorporate Ermal's comments -- use conf_mount_rw() only where needed.
Diffstat (limited to 'config/snort/snort_edit_hat_data.php')
-rw-r--r--config/snort/snort_edit_hat_data.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/config/snort/snort_edit_hat_data.php b/config/snort/snort_edit_hat_data.php
index 9189c936..f6d00b0b 100644
--- a/config/snort/snort_edit_hat_data.php
+++ b/config/snort/snort_edit_hat_data.php
@@ -61,23 +61,19 @@ else
$pconfig['host_attribute_data'] = "";
if ($_POST['clear']) {
- conf_mount_rw();
unset($a_nat[$id]['host_attribute_data']);
write_config();
$rebuild_rules = false;
snort_generate_conf($a_nat[$id]);
- conf_mount_ro();
header("Location: /snort/snort_edit_hat_data.php?id={$id}");
exit;
}
if ($_POST['host_attribute_data']) {
- conf_mount_rw();
$a_nat[$id]['host_attribute_data'] = base64_encode($_POST['host_attribute_data']);
write_config();
$rebuild_rules = false;
snort_generate_conf($a_nat[$id]);
- conf_mount_ro();
header("Location: /snort/snort_preprocessors.php?id={$id}");
exit;
}