mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user