Fixed a bug with detecting webapps.

This commit is contained in:
Seth Hall 2011-06-07 17:03:32 -04:00
parent 0de6393c6f
commit 8a0e14f0dc

View file

@ -38,7 +38,10 @@ event signature_match(state: signature_state, msg: string, data: string) &priori
# If the new url is a substring of an existing, known url then let's # If the new url is a substring of an existing, known url then let's
# use that as the new url for the software. # use that as the new url for the software.
# PROBLEM: different version of the same software on the same server with a shared root path # PROBLEM: different version of the same software on the same server with a shared root path
local is_substring = strstr(Software::tracked[c$id$resp_h][si$name]$url, si$url); local is_substring = 0;
if ( Software::tracked[c$id$resp_h][si$name]?$url )
is_substring = strstr(Software::tracked[c$id$resp_h][si$name]$url, si$url);
if ( is_substring == 1 ) if ( is_substring == 1 )
{ {
Software::tracked[c$id$resp_h][si$name]$url = si$url; Software::tracked[c$id$resp_h][si$name]$url = si$url;