File tree 1 file changed +8
-2
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/ProviderBase
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
using System . Diagnostics ;
10
10
using System . Globalization ;
11
11
using System . IO ;
12
+ using System . Xml ;
12
13
13
14
namespace Microsoft . Data . ProviderBase
14
15
{
@@ -499,9 +500,14 @@ private void LoadDataSetFromXml(Stream XmlStream)
499
500
{
500
501
_metaDataCollectionsDataSet = new DataSet
501
502
{
502
- Locale = System . Globalization . CultureInfo . InvariantCulture
503
+ Locale = CultureInfo . InvariantCulture
504
+ } ;
505
+ XmlReaderSettings settings = new ( )
506
+ {
507
+ XmlResolver = null
503
508
} ;
504
- _metaDataCollectionsDataSet . ReadXml ( XmlStream ) ;
509
+ using XmlReader reader = XmlReader . Create ( XmlStream , settings ) ;
510
+ _metaDataCollectionsDataSet . ReadXml ( reader ) ;
505
511
}
506
512
507
513
protected virtual DataTable PrepareCollection ( string collectionName , string [ ] restrictions , DbConnection connection )
You can’t perform that action at this time.
0 commit comments