1.78b: Fix to -J logic.

This commit is contained in:
Steve Pinkham 2010-11-22 09:26:50 -05:00
parent 39cfa696da
commit 44d86a63b6
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Version 1.78b:
--------------
- Fix to -J logic.
Version 1.77b:
--------------

View File

@ -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 \

View File

@ -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;