mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
fix the error message for invalid code point in content c.f. bug #339311
* parser.c: fix the error message for invalid code point in content c.f. bug #339311 Daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
Mon Apr 24 10:50:19 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: fix the error message for invalid code point in content
|
||||
c.f. bug #339311
|
||||
|
||||
Wed Apr 19 13:16:23 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||
|
||||
* xmlschemas.c test/schemas/restriction-enum-1*
|
||||
|
7
parser.c
7
parser.c
@@ -3661,6 +3661,13 @@ xmlParseCharDataComplex(xmlParserCtxtPtr ctxt, int cdata) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((cur != 0) && (!IS_CHAR(cur))) {
|
||||
/* Generate the error and skip the offending character */
|
||||
xmlFatalErrMsgInt(ctxt, XML_ERR_INVALID_CHAR,
|
||||
"PCDATA invalid Char value %d\n",
|
||||
cur);
|
||||
NEXTL(l);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user