diff --git a/.inc/callback.php b/.inc/callback.php index aaa0c88..6a4a6e3 100644 --- a/.inc/callback.php +++ b/.inc/callback.php @@ -121,7 +121,12 @@ function urlMkr($line) { foreach($ruleLines as $line) { - $searchCount = preg_match("/sid\:\s*$sigID\s*\;/",$line); + if ( $gID > 100 ) { + $searchCount = preg_match("/sid\:\s*$sigID\s*\;\s*gid\:\s*$gID\s*\;/",$line); + } else { + $searchCount = preg_match("/sid\:\s*$sigID\s*\;/",$line); + } + if($searchCount > 0) { $tempMsg = preg_match("/\bmsg\s*:\s*\"(.+?)\"\s*;/i",$line,$ruleMsg);