Browse code

scan the 'javascript' file using type 3 signatures. There is no CL_TYPE_SCRIPT target, so it was previously scanning them with type 0 (should have been CL_TYPE_TEXT_ASCII for type 7). I changed it to type 3 to better make use of existing JS signatures.

git-svn: trunk@4213

Török Edvin authored on 2008/10/01 17:07:39
Showing 1 changed files
... ...
@@ -985,7 +985,7 @@ static int cli_scanhtml(int desc, cli_ctx *ctx)
985 985
 	    snprintf(fullname, 1024, "%s/javascript", tempname);
986 986
 	    fd = open(fullname, O_RDONLY|O_BINARY);
987 987
 	    if(fd >= 0) {
988
-		    ret = cli_scandesc(fd, ctx, CL_TYPE_SCRIPT, 0, NULL, AC_SCAN_VIR);
988
+		    ret = cli_scandesc(fd, ctx, CL_TYPE_HTML, 0, NULL, AC_SCAN_VIR);
989 989
 		    close(fd);
990 990
 	    }
991 991
     }