From 8a7e082b56eba1d4541c1ca696a652ad9c1bb3b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 27 Jul 2000 23:49:47 +0000 Subject: If the path doesn't begin with a / and there is a host, prepend a / to the 2000-07-27 Jeffrey Stedfast * camel-url.c (camel_url_to_string): If the path doesn't begin with a / and there is a host, prepend a / to the path. svn path=/trunk/; revision=4403 --- camel/camel-url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camel/camel-url.c') diff --git a/camel/camel-url.c b/camel/camel-url.c index bf578a41a5..60385008c4 100644 --- a/camel/camel-url.c +++ b/camel/camel-url.c @@ -7,6 +7,7 @@ * Bertrand Guiheneuf * Dan Winship * Tiago Antào + * Jeffrey Stedfast * * Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com) * @@ -206,7 +207,7 @@ camel_url_to_string (CamelURL *url, gboolean show_passwd) host ? host : "", *port ? ":" : "", port, - path && *path != '/' ? "/" : "", + path && host && *path != '/' ? "/" : "", path ? path : ""); g_free (user); g_free (authmech); -- cgit