aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-03-25 00:19:24 +0000
committerJustin Clark-Casey (justincc)2014-03-25 00:19:24 +0000
commite12c044eabf223828d00a1ac45a8ed43215b882b (patch)
tree041fd4b5a588a96b94464f7550404b15f9c07ebf /OpenSim/Region/CoreModules
parentRename SOG.InSceneBackup to CanBeBackedUp to reflect its actual functionality. (diff)
downloadopensim-SC_OLD-e12c044eabf223828d00a1ac45a8ed43215b882b.zip
opensim-SC_OLD-e12c044eabf223828d00a1ac45a8ed43215b882b.tar.gz
opensim-SC_OLD-e12c044eabf223828d00a1ac45a8ed43215b882b.tar.bz2
opensim-SC_OLD-e12c044eabf223828d00a1ac45a8ed43215b882b.tar.xz
Don't fail to enable permissions modules correctly if there is any leading or trailing whitespace between comma separate module combinations.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 45617fc..89e2b55 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Linq;
30using System.Reflection; 31using System.Reflection;
31using log4net; 32using log4net;
32using Nini.Config; 33using Nini.Config;
@@ -160,7 +161,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
160 string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", 161 string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules",
161 new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); 162 new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule");
162 163
163 List<string> modules = new List<string>(permissionModules.Split(',')); 164 List<string> modules = new List<string>(permissionModules.Split(',').Select(m => m.Trim()));
164 165
165 if (!modules.Contains("DefaultPermissionsModule")) 166 if (!modules.Contains("DefaultPermissionsModule"))
166 return; 167 return;