diff options
Diffstat (limited to 'src/System.Web.Mvc/ValueProviderUtil.cs')
-rw-r--r-- | src/System.Web.Mvc/ValueProviderUtil.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/System.Web.Mvc/ValueProviderUtil.cs b/src/System.Web.Mvc/ValueProviderUtil.cs index 4db98104..3a56a3c8 100644 --- a/src/System.Web.Mvc/ValueProviderUtil.cs +++ b/src/System.Web.Mvc/ValueProviderUtil.cs @@ -92,6 +92,7 @@ namespace System.Web.Mvc key = entry.Substring(keyPosition, dotPosition - keyPosition); fullName = entry.Substring(0, dotPosition); break; + case '[': int bracketPosition = entry.IndexOf(']', keyPosition); if (bracketPosition == -1) @@ -103,6 +104,9 @@ namespace System.Web.Mvc key = entry.Substring(keyPosition, bracketPosition - keyPosition); fullName = entry.Substring(0, bracketPosition + 1); break; + + default: + continue; } if (!keys.ContainsKey(key)) |