Fixed EncryptWithMachineKey to handle values longer than FormsAuthentication.Encrypt max length limit

http://issues.umbraco.org/issue/U4-1455
This commit is contained in:
pcw@pcw-PC.shout.local
2013-01-15 20:07:07 +00:00
parent a6b2196c10
commit dec5e8ad6c
3 changed files with 50 additions and 13 deletions

View File

@@ -115,8 +115,8 @@ namespace Umbraco.Web.Mvc
return null;
var encodedVal = requestContext.HttpContext.Request["uformpostroutevals"];
var decodedString = Encoding.UTF8.GetString(Convert.FromBase64String(encodedVal));
var parsedQueryString = HttpUtility.ParseQueryString(decodedString);
var decryptedString = encodedVal.DecryptWithMachineKey();
var parsedQueryString = HttpUtility.ParseQueryString(decryptedString);
var decodedParts = new Dictionary<string, string>();