Limit line.Split in Reload()

Rebase of 0591e6b
This commit is contained in:
Bepis committed 2020-11-06 11:52:22 +11:00
1 parent fc8129010d
commit 8204577374
1 file changed
+1 -1
+1 -1
View File
@@ -118,7 +118,7 @@ namespace BepInEx.Configuration
continue;
}
string[] split = line.Split('='); //actual config line
string[] split = line.Split(new[] { '=' }, 2); //actual config line
if (split.Length != 2)
continue; //empty/invalid line