Skip to content

Commit 5fe9c71

Browse files
committed
Whitelist System.IO.StringReader namespace
1 parent 45cb427 commit 5fe9c71

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/CompiledAssembly.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extern alias References;
1+
extern alias References;
22

33
using Oxide.Core;
44
using Oxide.Core.CSharp;
@@ -40,8 +40,8 @@ public class CompiledAssembly
4040
};
4141

4242
private static IEnumerable<string> WhitelistedNamespaces => new[] {
43-
"System.Diagnostics.Stopwatch", "System.IO.MemoryStream", "System.IO.Stream", "System.IO.BinaryReader", "System.IO.BinaryWriter", "System.Net.Dns",
44-
"System.Net.Dns.GetHostEntry", "System.Net.IPAddress", "System.Net.IPEndPoint", "System.Net.NetworkInformation",
43+
"System.Diagnostics.Stopwatch", "System.IO.MemoryStream", "System.IO.Stream", "System.IO.BinaryReader", "System.IO.BinaryWriter", "System.IO.StringReader",
44+
"System.Net.Dns", "System.Net.Dns.GetHostEntry", "System.Net.IPAddress", "System.Net.IPEndPoint", "System.Net.NetworkInformation",
4545
"System.Net.Sockets.SocketFlags", "System.Security.Cryptography", "System.Threading.Interlocked"
4646
};
4747

0 commit comments

Comments
 (0)