1
0
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:
Daniel Veillard
2006-04-24 08:50:10 +00:00
parent b63d2fab2d
commit 3b1478b7e8
2 changed files with 12 additions and 0 deletions

View File

@@ -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);
}
}
/**