diff options
Diffstat (limited to 'OpenSim/Server/Base/ServerUtils.cs')
-rw-r--r-- | OpenSim/Server/Base/ServerUtils.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs index 2fbcea4..9c54410 100644 --- a/OpenSim/Server/Base/ServerUtils.cs +++ b/OpenSim/Server/Base/ServerUtils.cs | |||
@@ -140,12 +140,13 @@ namespace OpenSim.Server.Base | |||
140 | 140 | ||
141 | if (name.EndsWith("[]")) | 141 | if (name.EndsWith("[]")) |
142 | { | 142 | { |
143 | if (result.ContainsKey(name)) | 143 | string cleanName = name.Substring(0, name.Length - 2); |
144 | if (result.ContainsKey(cleanName)) | ||
144 | { | 145 | { |
145 | if (!(result[name] is List<string>)) | 146 | if (!(result[cleanName] is List<string>)) |
146 | continue; | 147 | continue; |
147 | 148 | ||
148 | List<string> l = (List<string>)result[name]; | 149 | List<string> l = (List<string>)result[cleanName]; |
149 | 150 | ||
150 | l.Add(value); | 151 | l.Add(value); |
151 | } | 152 | } |
@@ -155,7 +156,7 @@ namespace OpenSim.Server.Base | |||
155 | 156 | ||
156 | newList.Add(value); | 157 | newList.Add(value); |
157 | 158 | ||
158 | result[name] = newList; | 159 | result[cleanName] = newList; |
159 | } | 160 | } |
160 | } | 161 | } |
161 | else | 162 | else |