* libsoup/soup-cookie.c (soup_cookie_applies_to_uri): fix the path
checking
svn path=/trunk/; revision=1141
+2008-05-02 Dan Winship <danw@gnome.org>
+
+ * libsoup/soup-cookie.c (soup_cookie_applies_to_uri): fix the path
+ checking
+
2008-04-29 Tor Lillqvist <tml@novell.com>
* libsoup/soup-dns.c (soup_dns_is_ip_address): Fix compilation
* 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;