Skip to content

Commit 5e99e61

Browse files
committed
Fix RecoverEncryptionKey for ajax paramters
1 parent 1a5ff5f commit 5e99e61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal enum SessionType
6262
public class HttpAjaxContext : IHttpAjaxContext
6363
{
6464
private IGxContext _context;
65-
static readonly ILog log = log4net.LogManager.GetLogger(typeof(GeneXus.Utils.ExpressionEvaluator));
65+
static readonly ILog log = log4net.LogManager.GetLogger(typeof(HttpAjaxContext));
6666
private Stack cmpContents = new Stack();
6767
private GXAjaxCommandCollection commands = new GXAjaxCommandCollection();
6868
private JArray _AttValues = new JArray();
@@ -598,7 +598,7 @@ private bool RecoverEncryptionKey()
598598
if (!string.IsNullOrEmpty(clientKey))
599599
{
600600
bool correctKey = false;
601-
clientKey = CryptoImpl.DecryptRijndael(clientKey, CryptoImpl.GX_AJAX_PRIVATE_KEY, out correctKey);
601+
clientKey = CryptoImpl.DecryptRijndael(CryptoImpl.GX_AJAX_PRIVATE_IV + clientKey, CryptoImpl.GX_AJAX_PRIVATE_KEY, out correctKey);
602602
if (correctKey)
603603
{
604604
context.WriteSessionKey(CryptoImpl.AJAX_ENCRYPTION_KEY, clientKey);

0 commit comments

Comments
 (0)