When creating an external entity parser, don't set the processor if the encoding was unknown.
This commit is contained in:
parent
5d0c27b76c
commit
0317338f10
@ -316,7 +316,9 @@ XML_Parser XML_ExternalEntityParserCreate(XML_Parser oldParser,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (errorCode != XML_ERROR_UNKNOWN_ENCODING)
|
||||
processor = externalEntityInitProcessor;
|
||||
|
||||
return parser;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user