瀏覽代碼

2006-01-10 Gonzalo Paniagua Javier <[email protected]>

	* HttpWebResponse.cs: cope with malformed cookies with '=' as value.
	Patch by Cyrille Colin. Fixes bug #77179.


svn path=/trunk/mcs/; revision=55307
Gonzalo Paniagua Javier 20 年之前
父節點
當前提交
374ef7101d
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      mcs/class/System/System.Net/ChangeLog
  2. 1 1
      mcs/class/System/System.Net/HttpWebResponse.cs

+ 5 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,8 @@
+2006-01-10 Gonzalo Paniagua Javier <[email protected]>
+
+	* HttpWebResponse.cs: cope with malformed cookies with '=' as value.
+	Patch by Cyrille Colin. Fixes bug #77179.
+
 2005-12-25  Carlos Alberto Cortez <[email protected]>
 
 	* FtpStatusCode.cs: New 2.0 enum.

+ 1 - 1
mcs/class/System/System.Net/HttpWebResponse.cs

@@ -347,7 +347,7 @@ namespace System.Net
 			CookieParser parser = new CookieParser (header);
 
 			while (parser.GetNextNameValue (out name, out val)) {
-				if (name == null || name == "")
+				if ((name == null || name == "") && cookie == null)
 					continue;
 
 				if (cookie == null) {