diff --git a/ChangeLog b/ChangeLog index b2a4d90..e20be66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Version 1.59b: +-------------- + + - Fixed several file POI checks that depended on MIME information. + Version 1.58b: -------------- diff --git a/Makefile b/Makefile index 49eb6ee..a80f9fc 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ # PROGNAME = skipfish -VERSION = 1.58b +VERSION = 1.59b 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 \ diff --git a/analysis.c b/analysis.c index f65bd83..a95c9fb 100644 --- a/analysis.c +++ b/analysis.c @@ -1767,6 +1767,9 @@ void content_checks(struct http_request* req, struct http_response* res) { /* CHECK 4: Known exceptions / error pages, etc. */ + detect_mime(req, res); + res->sniffed_mime = (u8*)mime_map[res->sniff_mime_id][0]; + check_for_stuff(req, res); binary_checks: @@ -2391,8 +2394,10 @@ static void check_for_stuff(struct http_request* req, x++; } - if (slashes == 5) + if (slashes == 5) { problem(PROB_FILE_POI, req, res, (u8*)"CVS RCS data", req->pivot, 0); + return; + } }