[evolution-patches] libsoup authentication fix



The authentication changes in 1.99.26 don't work quite right with Basic
auth (although for some reason the problem almost never shows up for
me... probably another doesn't-happen-if-you're-on-the-same-subnet-as-
your-exchange-server bug). This fixes it.

This is making Connector not work at all for some users, so we want to
get this out ASAP.

-- Dan
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libsoup/ChangeLog,v
retrieving revision 1.318.2.3
diff -u -r1.318.2.3 ChangeLog
--- ChangeLog	18 Sep 2003 20:30:09 -0000	1.318.2.3
+++ ChangeLog	26 Sep 2003 12:35:37 -0000
@@ -1,3 +1,11 @@
+2003-09-26  Dan Winship  <danw ximian com>
+
+	* configure.in: 1.99.28
+
+	* libsoup/soup-auth.c (basic_pspace_func): strip the trailing
+	slash from the path so that it matches what it will be compared
+	against later. #48880
+
 2003-09-18  Joe Shaw  <joe ximian com>
 
 	* configure.in: 1.99.27
Index: configure.in
===================================================================
RCS file: /cvs/gnome/libsoup/configure.in,v
retrieving revision 1.89.2.2
diff -u -r1.89.2.2 configure.in
--- configure.in	18 Sep 2003 20:30:10 -0000	1.89.2.2
+++ configure.in	26 Sep 2003 12:35:37 -0000
@@ -4,7 +4,7 @@
 
 AC_INIT(libsoup/soup.h)
 
-AM_INIT_AUTOMAKE(libsoup, 1.99.27)
+AM_INIT_AUTOMAKE(libsoup, 1.99.28)
 AM_CONFIG_HEADER(config.h)
 AM_MAINTAINER_MODE
 AC_PROG_MAKE_SET
Index: libsoup/soup-auth.c
===================================================================
RCS file: /cvs/gnome/libsoup/libsoup/soup-auth.c,v
retrieving revision 1.22
diff -u -r1.22 soup-auth.c
--- libsoup/soup-auth.c	11 Aug 2003 13:50:50 -0000	1.22
+++ libsoup/soup-auth.c	26 Sep 2003 12:35:37 -0000
@@ -69,9 +69,9 @@
 
 	space = g_strdup (source_uri->path);
 
-	/* Strip query and filename component */
+	/* Strip query and filename component, and trailing slash */
 	p = strrchr (space, '/');
-	if (p && p != space && p[1])
+	if (p)
 		*p = '\0';
 
 	return g_slist_prepend (NULL, space);


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