aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-14 16:14:50 +0000
committerErmal <eri@pfsense.org>2012-07-14 16:14:50 +0000
commit73f835f4d37c0164e6e1bc56c3055cc05ef68a66 (patch)
tree8424ce63d70eb506fd9acb164b5ec49c55a0aa26
parent74f53520ad340806fcc6081a4a983797c9fab2fa (diff)
downloadpfsense-packages-73f835f4d37c0164e6e1bc56c3055cc05ef68a66.tar.gz
pfsense-packages-73f835f4d37c0164e6e1bc56c3055cc05ef68a66.tar.bz2
pfsense-packages-73f835f4d37c0164e6e1bc56c3055cc05ef68a66.zip
Avoid php interpreting this
-rw-r--r--config/snort/snort_check_for_rule_updates.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index f1152c10..df6ca548 100644
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -159,9 +159,9 @@ if ($emergingthreats == "on") {
$sedcmd = "s/^#alert/# alert/g\n";
$sedcmd .= "s/^##alert/# alert/g\n";
$sedcmd .= "s/^# alert/# alert/g\n";
-$sedcmd .= "s/^#\talert/# alert/g\n";
-$sedcmd .= "s/^##\talert/# alert/g\n";
-$sedcmd .= "s/^\talert/alert/g\n";
+$sedcmd .= "s/^#\\talert/# alert/g\n";
+$sedcmd .= "s/^##i\talert/# alert/g\n";
+$sedcmd .= "s/^\\talert/alert/g\n";
$sedcmd .= "s/^ alert/alert/g\n";
$sedcmd .= "s/^ alert/alert/g\n";
@file_put_contents("{$snortdir}/tmp/sedcmd", $sedcmd);