Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6056/src/org/htmlparser/lexer
Modified Files:
Page.java
Log Message:
Fix bug #995703 Parser Crash and bug #988846 Linkbean getLinks() segmentation fault
by not testing for content type "text/XXX" in Page, but rather issuing a warning when this is
discovered by the Parser level.
Index: Page.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Page.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** Page.java 13 Jul 2004 01:02:38 -0000 1.39
--- Page.java 29 Jul 2004 01:19:22 -0000 1.40
***************
*** 355,363 ****
}
type = getContentType ();
- if (type != null && !type.startsWith ("text"))
- throw new ParserException (
- "URL "
- + connection.getURL ().toExternalForm ()
- + " does not contain text");
charset = getCharset (type);
try
--- 355,358 ----
|