xehonu / skipfish

Automatically exported from code.google.com/p/skipfish
Apache License 2.0
0 stars 0 forks source link

Some JavaScript listed as text/plain in results #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
JavaScript files that start with a comment block (consisting of the Prototype 
and Scriptaculous notices) or an empty statement [starts with a ';' character] 
are being listed as text/plain on the results page.  Content type was 
text/javascript;charset=UTF-8.

Original issue reported on code.google.com by sourcesm...@googlemail.com on 8 Sep 2010 at 1:26

GoogleCodeExporter commented 8 years ago
Skipfish only analyzes SNIFF_LEN bytes (1024 by default) to determine if the 
file is JavaScript or not. If you're dealing with JS with oversized initial 
comment blocks, changing SNIFF_LEN in config.h should do the trick.

I am, however, tweaking the check slightly to perhaps make this less painful. 
New version coming shortly.

Original comment by lcam...@gmail.com on 8 Sep 2010 at 5:02