1.78b: Fix to -J logic.
This commit is contained in:
parent
39cfa696da
commit
44d86a63b6
|
@ -1,3 +1,8 @@
|
|||
Version 1.78b:
|
||||
--------------
|
||||
|
||||
- Fix to -J logic.
|
||||
|
||||
Version 1.77b:
|
||||
--------------
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
|
||||
PROGNAME = skipfish
|
||||
VERSION = 1.77b
|
||||
VERSION = 1.78b
|
||||
|
||||
OBJFILES = http_client.c database.c crawler.c analysis.c report.c
|
||||
INCFILES = alloc-inl.h string-inl.h debug.h types.h http_client.h \
|
||||
|
|
|
@ -1789,7 +1789,7 @@ binary_checks:
|
|||
if ((tmp = GET_HDR((u8*)"Content-Disposition", &res->hdr)) &&
|
||||
inl_strcasestr(tmp, (u8*)"attachment")) return;
|
||||
|
||||
if (relaxed_mime) {
|
||||
if (!relaxed_mime) {
|
||||
|
||||
/* CHECK 5A: Renderable documents that are not CSS or static JS are of
|
||||
particular interest when it comes to MIME / charset mistakes. */
|
||||
|
@ -2023,10 +2023,12 @@ static void detect_mime(struct http_request* req, struct http_response* res) {
|
|||
inl_strcasestr(sniffbuf, (u8*)"<span") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<div") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<img") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<form") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<br") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<td") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<h1") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<li") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"<p>") ||
|
||||
inl_strcasestr(sniffbuf, (u8*)"href=")) {
|
||||
res->sniff_mime_id = MIME_ASC_HTML;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue