mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Fix an issue where parameter parsing could lead to an exception
This commit is contained in:
@@ -227,8 +227,9 @@ namespace OpenSim.Server.Base
|
||||
// The path for a dynamic plugin will contain ":" on Windows
|
||||
string[] parts = dllName.Split (new char[] {':'});
|
||||
|
||||
if (parts [0].Length > 1)
|
||||
if (parts.Length < 3)
|
||||
{
|
||||
// Linux. There will be ':' but the one we're looking for
|
||||
dllName = parts [0];
|
||||
if (parts.Length > 1)
|
||||
className = parts[1];
|
||||
|
||||
Reference in New Issue
Block a user