mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
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:
1 parent
5899ab0bee
commit
0591e6b8b2
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user