Fix an issue where parameter parsing could lead to an exception

0.9.1.0-post-fixes
Melanie 2019-10-06 19:51:13 +01:00
parent 1b70b569ad
commit aed0eaf4d7
1 changed files with 2 additions and 1 deletions

View File

@ -227,8 +227,9 @@ namespace OpenSim.Server.Base
// The path for a dynamic plugin will contain ":" on Windows // The path for a dynamic plugin will contain ":" on Windows
string[] parts = dllName.Split (new char[] {':'}); 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]; dllName = parts [0];
if (parts.Length > 1) if (parts.Length > 1)
className = parts[1]; className = parts[1];