aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_interfaces_edit.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-03 11:17:55 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-03 11:17:55 -0400
commit2c4435fa4db6a4d24d7faf0b4cdbd7cde8d73089 (patch)
tree1ec27815d6b6f9844844005e03bf565ca13630d2 /config/suricata/suricata_interfaces_edit.php
parentb9dd2b74d87b1664360bd467b37baf604c53de30 (diff)
downloadpfsense-packages-2c4435fa4db6a4d24d7faf0b4cdbd7cde8d73089.tar.gz
pfsense-packages-2c4435fa4db6a4d24d7faf0b4cdbd7cde8d73089.tar.bz2
pfsense-packages-2c4435fa4db6a4d24d7faf0b4cdbd7cde8d73089.zip
Strip any CR characters that may get pasted into some control fields.
Diffstat (limited to 'config/suricata/suricata_interfaces_edit.php')
-rw-r--r--config/suricata/suricata_interfaces_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/suricata/suricata_interfaces_edit.php b/config/suricata/suricata_interfaces_edit.php
index a3b2e78a..ff21b48f 100644
--- a/config/suricata/suricata_interfaces_edit.php
+++ b/config/suricata/suricata_interfaces_edit.php
@@ -300,7 +300,7 @@ if ($_POST["save"] && !$input_errors) {
if ($_POST['eve_log_files'] == "on") { $natent['eve_log_files'] = 'on'; }else{ $natent['eve_log_files'] = 'off'; }
if ($_POST['eve_log_ssh'] == "on") { $natent['eve_log_ssh'] = 'on'; }else{ $natent['eve_log_ssh'] = 'off'; }
if ($_POST['delayed_detect'] == "on") { $natent['delayed_detect'] = 'on'; }else{ $natent['delayed_detect'] = 'off'; }
- if ($_POST['configpassthru']) $natent['configpassthru'] = base64_encode($_POST['configpassthru']); else unset($natent['configpassthru']);
+ if ($_POST['configpassthru']) $natent['configpassthru'] = base64_encode(str_replace("\r\n", "\n", $_POST['configpassthru'])); else unset($natent['configpassthru']);
$if_real = get_real_interface($natent['interface']);
if (isset($id) && $a_rule[$id] && $action == '') {