Update of /cvsroot/magicajax/magicajax/Core
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28761/Core
Modified Files:
MagicAjaxModule.cs
Log Message:
When checking if it's .aspx page it was case sensitive and caused errors for '.Aspx' pages; fixed it
Index: MagicAjaxModule.cs
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxModule.cs,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** MagicAjaxModule.cs 9 Feb 2006 13:40:59 -0000 1.63
--- MagicAjaxModule.cs 29 Sep 2006 09:00:01 -0000 1.64
***************
*** 400,404 ****
HttpContext context = ((HttpApplication)sender).Context;
! if (context.Request.Url.AbsolutePath.EndsWith(".aspx"))
{
// Check if the request is for the embedded AjaxCallObject.js script
--- 400,404 ----
HttpContext context = ((HttpApplication)sender).Context;
! if (context.Request.Url.AbsolutePath.ToLower().EndsWith(".aspx"))
{
// Check if the request is for the embedded AjaxCallObject.js script
***************
*** 445,449 ****
HttpApplication application = (HttpApplication)sender;
! if (_request == null || !_request.Url.AbsolutePath.EndsWith(".aspx"))
{
return; //if this wasn't a .aspx request, don't process
--- 445,449 ----
HttpApplication application = (HttpApplication)sender;
! if (_request == null || !_request.Url.AbsolutePath.ToLower().EndsWith(".aspx"))
{
return; //if this wasn't a .aspx request, don't process
|