From aed0eaf4d79d9cc7dedcdc7351a646bb97deec39 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 6 Oct 2019 19:51:13 +0100 Subject: [PATCH] Fix an issue where parameter parsing could lead to an exception --- OpenSim/Server/Base/ServerUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index b020215f0f..a21287ac93 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs @@ -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];