+2001-10-03 Dan Winship <danw@ximian.com>
+
+ * src/libsoup/soup-uri.c (soup_uri_new): The @ in
+ http://foo/bar@baz is part of the path, not the username/hostname
+ split.
+
2001-10-01 Alex Graveley <alex@ximian.com>
* configure.in: Fix HAVE_OPENSSL and HAVE_NSS checks as these were
/* If there is an @ sign, look for user, authmech, and
* password before it.
*/
+ slash = strchr (uri_string, '/');
at = strchr (uri_string, '@');
- if (at) {
+ if (at && (!slash || at < slash)) {
colon = strchr (uri_string, ':');
if (colon && colon < at)
g_uri->passwd = g_strndup (colon + 1, at - colon - 1);
g_uri->user = g_uri->passwd = g_uri->authmech = NULL;
/* Find host (required) and port. */
- slash = strchr (uri_string, '/');
colon = strchr (uri_string, ':');
if (slash && colon > slash)
colon = 0;