aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_suppress_edit.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-10 15:37:38 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-10 15:37:38 -0400
commit7bde87a1a8f4ab631a3a3f8e0907b80f28fa6a5b (patch)
tree728f981081527ae67d57790e11b3e2dabdd6de11 /config/snort/snort_interfaces_suppress_edit.php
parent46998b31ae1a4c3c01ef2fe4f14696f12ace5308 (diff)
downloadpfsense-packages-7bde87a1a8f4ab631a3a3f8e0907b80f28fa6a5b.tar.gz
pfsense-packages-7bde87a1a8f4ab631a3a3f8e0907b80f28fa6a5b.tar.bz2
pfsense-packages-7bde87a1a8f4ab631a3a3f8e0907b80f28fa6a5b.zip
Scrub CR/LF sequences that may come from copy-paste and replace with LF.
Diffstat (limited to 'config/snort/snort_interfaces_suppress_edit.php')
-rw-r--r--config/snort/snort_interfaces_suppress_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_interfaces_suppress_edit.php b/config/snort/snort_interfaces_suppress_edit.php
index 9f910b55..becfdcd7 100644
--- a/config/snort/snort_interfaces_suppress_edit.php
+++ b/config/snort/snort_interfaces_suppress_edit.php
@@ -121,7 +121,7 @@ if ($_POST['save']) {
$s_list['descr'] = mb_convert_encoding($_POST['descr'],"HTML-ENTITIES","auto");
if ($_POST['suppresspassthru']) {
$s_list['suppresspassthru'] = str_replace("&#8203;", "", $s_list['suppresspassthru']);
- $s_list['suppresspassthru'] = base64_encode($_POST['suppresspassthru']);
+ $s_list['suppresspassthru'] = base64_encode(str_replace("\r\n", "\n", $_POST['suppresspassthru']));
}
if (isset($id) && $a_suppress[$id])