Skip to content

Commit

Permalink
Fix default read extenral entities
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrampone committed Dec 28, 2022
1 parent 17c1ea7 commit c76a6d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dotnet/src/dotnetcore/GxClasses/Domain/GXXmlReadWrite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public GXXMLReader()
SimpleElements = 1;
RemoveWhiteNodes = 1;
RemoveWhiteSpaces = 1;
ReadExternalEntities = 1;
ReadExternalEntities = 0;
_basePath = "";

}
Expand Down Expand Up @@ -228,6 +228,8 @@ private void SetDtdProcessing(XmlReaderSettings treaderSettings, GXResolver reso
{
if (treaderSettings != null && !resolver.ReadExternalEntities && validationType == ValidationNone)
treaderSettings.DtdProcessing = DtdProcessing.Ignore;
else
treaderSettings.DtdProcessing = DtdProcessing.Parse;
}

public short OpenResponse(IGxHttpClient httpClient)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public GXXMLReader()
SimpleElements = 1;
RemoveWhiteNodes = 1;
RemoveWhiteSpaces = 1;
ReadExternalEntities = 1;
ReadExternalEntities = 0;
_basePath = "";

}
Expand Down

0 comments on commit c76a6d6

Please sign in to comment.