Applied URL decoding to form field keys.

This fixes an issue where "complex" form field names aren't properly mapped to key value pairs, such as "Parts%5B0%5D.Bindings%5B0%5D.Name"  instead of "Parts[0].Bindings[0].Name"
This commit is contained in:
Sipke Schoorstra
2015-04-01 17:16:24 +02:00
parent 5e85d3d872
commit 1bae4f143b

View File

@@ -52,7 +52,7 @@ namespace Orchard.Layouts.Helpers {
foreach (var item in items) {
var pair = item.Split(new[] { '=' });
var key = pair[0];
var key = HttpUtility.UrlDecode(pair[0]);
var value = HttpUtility.UrlDecode(pair[1]);
if (!dictionary.ContainsKey(key) && !_elementDataBlackList.Contains(key))