From 5e836ee59cbbe4f3959c2acbbe5b5d107d276e72 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 18 Feb 2000 22:11:02 +0000 Subject: make the / between the host and the path part of the path: it's wrong according to rfc1738, but convenient svn path=/trunk/; revision=1840 --- camel/url-util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'camel') diff --git a/camel/url-util.c b/camel/url-util.c index 39294e0d36..5fea4d6542 100644 --- a/camel/url-util.c +++ b/camel/url-util.c @@ -125,7 +125,7 @@ Gurl *g_url_new (const gchar* url_string) } if (slash && *(slash + 1)) - g_url->path = g_strdup (slash + 1); + g_url->path = g_strdup (slash); else g_url->path = NULL; @@ -135,7 +135,7 @@ Gurl *g_url_new (const gchar* url_string) gchar * g_url_to_string (const Gurl *url, gboolean show_passwd) { - return g_strdup_printf("%s%s%s%s%s%s%s%s%s%s%s%s%s", + return g_strdup_printf("%s%s%s%s%s%s%s%s%s%s%s%s", url->protocol ? url->protocol : "", url->protocol ? "://" : "", url->user ? url->user : "", @@ -147,7 +147,6 @@ g_url_to_string (const Gurl *url, gboolean show_passwd) url->host, url->port ? ":" : "", url->port ? url->port : "", - url->path ? "/" : "", url->path ? url->path : ""); } -- cgit