Limit line.Split in Reload()

Limiting the maximum number of returned substrings to 2 allows for string values to contain the `=` character without affecting other functionality.
This commit is contained in:
XoXFaby committed 2020-09-13 22:17:21 +02:00
1 parent 5899ab0bee
commit 0591e6b8b2
1 file changed
+2 -2
+2 -2
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
@@ -555,4 +555,4 @@ namespace BepInEx.Configuration
}
}
}
}
}