17 lines
474 B
Diff
17 lines
474 B
Diff
Index: parser.c
|
|
===================================================================
|
|
--- parser.c (revision 3795)
|
|
+++ parser.c (working copy)
|
|
@@ -7225,8 +7225,10 @@ xmlParseStringEntityRef(xmlParserCtxtPtr
|
|
* Predefined entites override any extra definition
|
|
*/
|
|
ent = xmlGetPredefinedEntity(name);
|
|
- if (ent != NULL)
|
|
+ if (ent != NULL) {
|
|
+ *str = ptr;
|
|
return(ent);
|
|
+ }
|
|
|
|
/*
|
|
* Increate the number of entity references parsed
|