Update of /cvsroot/magicajax/magicajax/Core/UI/Controls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29956/magicajax/Core/UI/Controls
Modified Files:
AjaxPanel.cs
Log Message:
Because MD5 also generates a unique fingerprint (and is quicker than SHA-1), I've replaced the SHA-1 hashing by MD5 hashing
Index: AjaxPanel.cs
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AjaxPanel.cs 15 Nov 2005 12:38:36 -0000 1.5
--- AjaxPanel.cs 15 Nov 2005 12:55:11 -0000 1.6
***************
*** 186,190 ****
if (IsPageNoStoreMode)
! _controlHtmlHashes[control] = AjaxCallHelper.GetBase64SHA1Sum(sb.ToString());
else
_controlHtmls[control] = sb.ToString();
--- 186,190 ----
if (IsPageNoStoreMode)
! _controlHtmlHashes[control] = AjaxCallHelper.GetBase64MD5Sum(sb.ToString());
else
_controlHtmls[control] = sb.ToString();
***************
*** 299,303 ****
if (IsPageNoStoreMode)
! _controlHtmlHashes[con] = AjaxCallHelper.GetBase64SHA1Sum(sb.ToString());
else
_controlHtmls[con] = sb.ToString();
--- 299,303 ----
if (IsPageNoStoreMode)
! _controlHtmlHashes[con] = AjaxCallHelper.GetBase64MD5Sum(sb.ToString());
else
_controlHtmls[con] = sb.ToString();
***************
*** 419,423 ****
if (IsPageNoStoreMode)
! _controlHtmlHashes[con] = AjaxCallHelper.GetBase64SHA1Sum(sb.ToString());
else
_controlHtmls[con] = sb.ToString();
--- 419,423 ----
if (IsPageNoStoreMode)
! _controlHtmlHashes[con] = AjaxCallHelper.GetBase64MD5Sum(sb.ToString());
else
_controlHtmls[con] = sb.ToString();
***************
*** 462,466 ****
if (IsPageNoStoreMode)
! _controlHtmlHashes[con] = AjaxCallHelper.GetBase64SHA1Sum(sb.ToString());
else
_controlHtmls[con] = sb.ToString();
--- 462,466 ----
if (IsPageNoStoreMode)
! _controlHtmlHashes[con] = AjaxCallHelper.GetBase64MD5Sum(sb.ToString());
else
_controlHtmls[con] = sb.ToString();
***************
*** 473,477 ****
if (IsPageNoStoreMode)
{
! string htmlHashCode = AjaxCallHelper.GetBase64SHA1Sum(html);
// If it's html rendering sha1 hash is the same, ignore it.
--- 473,477 ----
if (IsPageNoStoreMode)
{
! string htmlHashCode = AjaxCallHelper.GetBase64MD5Sum(html);
// If it's html rendering sha1 hash is the same, ignore it.
|