scan javascript with type 7 (and implicitly with type 0) too

git-svn: trunk@4246
This commit is contained in:
Török Edvin
2008-10-11 10:27:20 +00:00
parent 86fd43b2bd
commit ffe6231f35
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
Sat Oct 11 13:01:36 EEST 2008 (edwin)
-------------------------------------
* libclamav/scanners.c: scan javascript with type 7 (and implicitly
with type 0) too
Sat Oct 11 12:20:10 CEST 2008 (acab)
* freshclama/manager.c: bump _XOPEN_SOURCE

View File

@@ -986,6 +986,10 @@ static int cli_scanhtml(int desc, cli_ctx *ctx)
fd = open(fullname, O_RDONLY|O_BINARY);
if(fd >= 0) {
ret = cli_scandesc(fd, ctx, CL_TYPE_HTML, 0, NULL, AC_SCAN_VIR);
if (ret == CL_CLEAN) {
lseek(fd, 0, SEEK_SET);
ret = cli_scandesc(fd, ctx, CL_TYPE_TEXT_ASCII, 0, NULL, AC_SCAN_VIR);
}
close(fd);
}
}