فهرست منبع

2005-12-06 Gonzalo Paniagua Javier <[email protected]>

	* HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
	without a value. Fixes bug #76922.


svn path=/trunk/mcs/; revision=54007
Gonzalo Paniagua Javier 20 سال پیش
والد
کامیت
59d07a3df0
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 @@
+2005-12-06 Gonzalo Paniagua Javier <[email protected]>
+
+	* HttpWebResponse.cs: don't fail if the cookie ends with a 'name'
+	without a value. Fixes bug #76922.
+
 2005-11-28 Gonzalo Paniagua Javier <[email protected]>
 
 	* EndPointListener.cs:

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

@@ -452,7 +452,7 @@ namespace System.Net
 				return false;
 
 			name = GetCookieName ();
-			if (header [pos] == '=') {
+			if (pos < header.Length && header [pos] == '=') {
 				pos++;
 				val = GetCookieValue ();
 				if (pos < length && header [pos] == ';')