aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-02-19 06:11:02 +0800
committerDan Winship <danw@src.gnome.org>2000-02-19 06:11:02 +0800
commit5e836ee59cbbe4f3959c2acbbe5b5d107d276e72 (patch)
tree491c53c939d4ed5aa1699c359fb149b26638dabb
parent85daf8e5a6b9155c34d6231190594cf96dd8d5c3 (diff)
downloadgsoc2013-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
-rw-r--r--camel/url-util.c5
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 : "");
}
span>1-1/+1 * graphics/libplacebo: update to 4.192.0.r1Jan Beich2022-01-181-0/+1 * cleanup: drop support for EOL FreeBSD 11.XRene Ladan2021-10-011-41/+0 * multimedia/dav1d: update to 0.9.2Jan Beich2021-09-042-6/+5 * graphics/libplacebo: update to 4.157.0.r1Jan Beich2021-08-171-0/+1 * multimedia/dav1d: update to 0.9.1Jan Beich2021-07-293-6/+6 * multimedia/dav1d: update to 0.9.0Jan Beich2021-05-173-10/+9 * Regenerate all distfiles using gitlab as source.Matthias Fechner2021-04-101-5/+5 * One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-06