mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-18 21:40:17 -04:00
scan javascript with type 7 (and implicitly with type 0) too
git-svn: trunk@4246
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user