Author: kostat
Date: 2007-05-16 09:00:56 -0400 (Wed, 16 May 2007)
New Revision: 77478

Modified:
   branches/mainsoft/gh20/mcs/class/System.Web/System.Web/ChangeLog
   branches/mainsoft/gh20/mcs/class/System.Web/System.Web/HttpContext.cs
Log:
merge -r77470:77471

Modified: branches/mainsoft/gh20/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- branches/mainsoft/gh20/mcs/class/System.Web/System.Web/ChangeLog    
2007-05-16 12:56:47 UTC (rev 77477)
+++ branches/mainsoft/gh20/mcs/class/System.Web/System.Web/ChangeLog    
2007-05-16 13:00:56 UTC (rev 77478)
@@ -1,3 +1,7 @@
+2007-05-16  Konstantin Triger <[EMAIL PROTECTED]>
+
+       * HttpContext.cs: correctly check for request locality.
+
 2007-05-14  Vladimir Krasnov  <[EMAIL PROTECTED]>
 
        * HttpWriter.cs: GetMaxByteCount was used in Write and WriteString

Modified: branches/mainsoft/gh20/mcs/class/System.Web/System.Web/HttpContext.cs
===================================================================
--- branches/mainsoft/gh20/mcs/class/System.Web/System.Web/HttpContext.cs       
2007-05-16 12:56:47 UTC (rev 77477)
+++ branches/mainsoft/gh20/mcs/class/System.Web/System.Web/HttpContext.cs       
2007-05-16 13:00:56 UTC (rev 77478)
@@ -200,8 +200,7 @@
                                if (cfg.Mode == CustomErrorMode.On)
                                        return true;
 
-                               return (cfg.Mode == CustomErrorMode.RemoteOnly) 
&& 
-                                       (Request.WorkerRequest.GetLocalAddress 
() != Request.UserHostAddress);
+                               return (cfg.Mode == CustomErrorMode.RemoteOnly) 
&& !Request.IsLocal;
                        }
                }
 #if !TARGET_JVM

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to