diff options
author | Dan Winship <danw@src.gnome.org> | 2000-02-19 06:11:02 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-02-19 06:11:02 +0800 |
commit | 5e836ee59cbbe4f3959c2acbbe5b5d107d276e72 (patch) | |
tree | 491c53c939d4ed5aa1699c359fb149b26638dabb /camel | |
parent | 85daf8e5a6b9155c34d6231190594cf96dd8d5c3 (diff) | |
download | gsoc2013-evolution-5e836ee59cbbe4f3959c2acbbe5b5d107d276e72.tar.gz gsoc2013-evolution-5e836ee59cbbe4f3959c2acbbe5b5d107d276e72.tar.zst gsoc2013-evolution-5e836ee59cbbe4f3959c2acbbe5b5d107d276e72.zip |
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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/url-util.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 : ""); } |