mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-02 20:42:30 +03:00
- HTMLparser.c: fixed loop on invalid char in scripts
- parser.c: update to description of xmlIOParseDTD() - libxml.m4 xmlversion.h.in: changes contributed by Michael Schmeing <m.schmeing@internet-factory.de> - configure.in: preparing for 2.2.7 - Makefile.am: trying to avoid config.h and acconfig.h being included in the distrib - rebuilt the docs - configure.in: released 2.2.7 Daniel
This commit is contained in:
@ -2329,6 +2329,14 @@ htmlParseScript(htmlParserCtxtPtr ctxt) {
|
||||
NEXT;
|
||||
cur = CUR;
|
||||
}
|
||||
if (!(IS_CHAR(cur))) {
|
||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||
ctxt->sax->error(ctxt->userData,
|
||||
"Invalid char in CDATA 0x%X\n", cur);
|
||||
ctxt->wellFormed = 0;
|
||||
NEXT;
|
||||
}
|
||||
|
||||
if ((nbchar != 0) && (ctxt->sax != NULL) && (!ctxt->disableSAX)) {
|
||||
if (ctxt->sax->cdataBlock!= NULL) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user