diff --git a/mcs/class/System.Web/System.Web.UI/Page.cs b/mcs/class/System.Web/System.Web.UI/Page.cs index 86e17bbc1caf..e6c79483a0d5 100644 --- a/mcs/class/System.Web/System.Web.UI/Page.cs +++ b/mcs/class/System.Web/System.Web.UI/Page.cs @@ -1175,7 +1175,7 @@ internal void OnFormPostRender (HtmlTextWriter writer, string formUniqueID) void ProcessPostData (NameValueCollection data, bool second) { - NameValueCollection requestValues = _requestValueCollection == null ? new NameValueCollection () : _requestValueCollection; + NameValueCollection requestValues = _requestValueCollection == null ? new NameValueCollection (SecureHashCodeProvider.DefaultInvariant, CaseInsensitiveComparer.DefaultInvariant) : _requestValueCollection; if (data != null && data.Count > 0) { var used = new Dictionary (StringComparer.Ordinal); @@ -1210,7 +1210,7 @@ void ProcessPostData (NameValueCollection data, bool second) } else if (!second) { if (secondPostData == null) - secondPostData = new NameValueCollection (); + secondPostData = new NameValueCollection (SecureHashCodeProvider.DefaultInvariant, CaseInsensitiveComparer.DefaultInvariant); secondPostData.Add (id, data [id]); } }