Author: miguel
Date: 2007-01-11 19:17:10 -0500 (Thu, 11 Jan 2007)
New Revision: 70893

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/HttpListenerRequest.cs
Log:
2007-01-11  Miguel de Icaza  <[EMAIL PROTECTED]>

        * HttpListenerRequest.cs: Allow any verbs to go through, not only
        the white list of verbs.

        Fixes: 80504

Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2007-01-11 23:50:21 UTC (rev 
70892)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2007-01-12 00:17:10 UTC (rev 
70893)
@@ -1,3 +1,10 @@
+2007-01-11  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * HttpListenerRequest.cs: Allow any verbs to go through, not only
+       the white list of verbs.
+
+       Fixes: 80504
+
 2007-01-04 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * RequestStream.cs: initialize the stream in both ctors. Fixes a couple
@@ -49,6 +56,8 @@
        distinguish between 1.1 and 2.0, we wont likely support 1.0, 1.1
        and 2.0, so remove the 1.0 vs 1.1 conditionals.
 
+       Fixes 76792
+       
 2006-12-24 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * WebConnectionStream.cs: fix error in my last patch. Thanks to Felipe

Modified: trunk/mcs/class/System/System.Net/HttpListenerRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpListenerRequest.cs    2007-01-11 
23:50:21 UTC (rev 70892)
+++ trunk/mcs/class/System/System.Net/HttpListenerRequest.cs    2007-01-12 
00:17:10 UTC (rev 70893)
@@ -67,9 +67,11 @@
                }
 
                static char [] separators = new char [] { ' ' };
-               // From WebRequestMethods.Http
+
+#if false
                static readonly string [] methods = new string [] { "GET", 
"POST", "HEAD",
                                                                "PUT", 
"CONNECT", "MKCOL" };
+#endif
                internal void SetRequestLine (string req)
                {
                        string [] parts = req.Split (separators, 3);
@@ -79,10 +81,17 @@
                        }
 
                        method = parts [0];
+                       
+#if false
+                       //
+                       // According to bug #80504 we should allow any verbs to 
go
+                       // through.
+                       //
                        if (Array.IndexOf (methods, method) == -1) {
                                context.ErrorMessage = "Invalid request line 
(verb).";
                                return;
                        }
+#endif
 
                        raw_url = parts [1];
                        if (parts [2].Length != 8 || !parts [2].StartsWith 
("HTTP/")) {

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

Reply via email to