Skip to content

Commit

Permalink
Add readExternalEntities property inicialization false on contructor …
Browse files Browse the repository at this point in the history
…method.
  • Loading branch information
sgrampone committed Dec 15, 2022
1 parent ddddb90 commit 5e53663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotnet/src/dotnetcore/GxClasses/Domain/GXXmlReadWrite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ private class GXResolver: XmlUrlResolver
{

private Uri myself;
private bool readExternalEntities = true;
private bool readExternalEntities = false;
private GXXMLReader xmlreader;
private UnparsedEntitiesContainer entities;

Expand Down Expand Up @@ -1230,6 +1230,7 @@ public GXResolver(GXXMLReader reader, UnparsedEntitiesContainer EntitiesContaine
{
xmlreader = reader;
entities = EntitiesContainer;
readExternalEntities = false;
}

public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
Expand Down

0 comments on commit 5e53663

Please sign in to comment.