From 73f835f4d37c0164e6e1bc56c3055cc05ef68a66 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sat, 14 Jul 2012 16:14:50 +0000 Subject: Avoid php interpreting this --- config/snort/snort_check_for_rule_updates.php | 6 +++--- 1 file 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); -- cgit v1.2.3