Skip to content

Commit c76a6d6

Browse files
committed
Fix default read extenral entities
1 parent 17c1ea7 commit c76a6d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dotnet/src/dotnetcore/GxClasses/Domain/GXXmlReadWrite.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public GXXMLReader()
116116
SimpleElements = 1;
117117
RemoveWhiteNodes = 1;
118118
RemoveWhiteSpaces = 1;
119-
ReadExternalEntities = 1;
119+
ReadExternalEntities = 0;
120120
_basePath = "";
121121

122122
}
@@ -228,6 +228,8 @@ private void SetDtdProcessing(XmlReaderSettings treaderSettings, GXResolver reso
228228
{
229229
if (treaderSettings != null && !resolver.ReadExternalEntities && validationType == ValidationNone)
230230
treaderSettings.DtdProcessing = DtdProcessing.Ignore;
231+
else
232+
treaderSettings.DtdProcessing = DtdProcessing.Parse;
231233
}
232234

233235
public short OpenResponse(IGxHttpClient httpClient)

dotnet/src/dotnetframework/GxClasses/Domain/GXXmlReadWrite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public GXXMLReader()
105105
SimpleElements = 1;
106106
RemoveWhiteNodes = 1;
107107
RemoveWhiteSpaces = 1;
108-
ReadExternalEntities = 1;
108+
ReadExternalEntities = 0;
109109
_basePath = "";
110110

111111
}

0 commit comments

Comments
 (0)