libsoup r1141 - in trunk: . libsoup



Author: danw
Date: Fri May  2 18:10:10 2008
New Revision: 1141
URL: http://svn.gnome.org/viewvc/libsoup?rev=1141&view=rev

Log:
	* libsoup/soup-cookie.c (soup_cookie_applies_to_uri): fix the path
	checking


Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-cookie.c

Modified: trunk/libsoup/soup-cookie.c
==============================================================================
--- trunk/libsoup/soup-cookie.c	(original)
+++ trunk/libsoup/soup-cookie.c	Fri May  2 18:10:10 2008
@@ -847,8 +847,8 @@
 	 * no one is really that crazy.
 	 */
 	plen = strlen (cookie->path);
-	if (strncmp (cookie->path, uri->path, plen) != 0)
-		return FALSE;
+	if (cookie->path[plen - 1] == '/')
+		plen--;
 	if (uri->path[plen] && uri->path[plen] != '/')
 		return FALSE;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]