mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-19 09:57:23 +03:00
fixed bugs #58073 reported by Greg Shtilman Daniel
* parser.c: fixed bugs #58073 reported by Greg Shtilman Daniel
This commit is contained in:
parent
2454ab9e00
commit
6dd398f6c4
@ -1,4 +1,8 @@
|
|||||||
Thu Jul 26 11:38:37 EDT 2001 <Daniel.Veillard@imag.fr>
|
Thu Jul 26 12:40:35 EDT 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* parser.c: fixed bugs #58073 reported by Greg Shtilman
|
||||||
|
|
||||||
|
Thu Jul 26 11:38:37 EDT 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* parser.c: fixes bug #57652 reported by Morus Walter
|
* parser.c: fixes bug #57652 reported by Morus Walter
|
||||||
|
|
||||||
|
2
parser.c
2
parser.c
@ -1493,6 +1493,7 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
|||||||
/*
|
/*
|
||||||
* Look if the element is mixed content in the Dtd if available
|
* Look if the element is mixed content in the Dtd if available
|
||||||
*/
|
*/
|
||||||
|
if (ctxt->node == NULL) return(0);
|
||||||
if (ctxt->myDoc != NULL) {
|
if (ctxt->myDoc != NULL) {
|
||||||
ret = xmlIsMixedElement(ctxt->myDoc, ctxt->node->name);
|
ret = xmlIsMixedElement(ctxt->myDoc, ctxt->node->name);
|
||||||
if (ret == 0) return(1);
|
if (ret == 0) return(1);
|
||||||
@ -1503,7 +1504,6 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
|
|||||||
* Otherwise, heuristic :-\
|
* Otherwise, heuristic :-\
|
||||||
*/
|
*/
|
||||||
if (RAW != '<') return(0);
|
if (RAW != '<') return(0);
|
||||||
if (ctxt->node == NULL) return(0);
|
|
||||||
if ((ctxt->node->children == NULL) &&
|
if ((ctxt->node->children == NULL) &&
|
||||||
(RAW == '<') && (NXT(1) == '/')) return(0);
|
(RAW == '<') && (NXT(1) == '/')) return(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user