diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi
index 0f039c33c..cc3be9e94 100644
--- a/html/cgi-bin/ids.cgi
+++ b/html/cgi-bin/ids.cgi
@@ -1942,7 +1942,7 @@ sub readrulesfile ($) {
my $msg;
# Gather rule sid and message from the ruleline.
- if ($line =~ m/.*msg:\"(.*?)\"\; .* sid:(.*?); /) {
+ if ($line =~ m/.*msg:\"(.*?)\"\; .*sid:(.*?); /) {
$msg = $1;
$sid = $2;