aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-28 07:49:47 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-28 07:49:47 +0800
commit8a7e082b56eba1d4541c1ca696a652ad9c1bb3b3 (patch)
tree3dc2df329242cfe9081ea347ea6390db0aa6e20a
parent5c7766bfbdd344c1e2820329b0cdf455b966a9da (diff)
downloadgsoc2013-evolution-8a7e082b56eba1d4541c1ca696a652ad9c1bb3b3.tar.gz
gsoc2013-evolution-8a7e082b56eba1d4541c1ca696a652ad9c1bb3b3.tar.zst
gsoc2013-evolution-8a7e082b56eba1d4541c1ca696a652ad9c1bb3b3.zip
If the path doesn't begin with a / and there is a host, prepend a / to the
2000-07-27 Jeffrey Stedfast <fejj@helixcode.com> * 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
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-url.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index df277663da..74b8ecbb4a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,10 @@
2000-07-27 Jeffrey Stedfast <fejj@helixcode.com>
+ * 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.
+
+2000-07-27 Jeffrey Stedfast <fejj@helixcode.com>
+
* providers/imap/Makefile.am: Added camel-imap-utils.[c,h]
* providers/imap/camel-imap-utils.[c,h]: Utilities for parsing
@@ -18,7 +23,7 @@
(imap_connect): Updated to use imap_parse_list_response and fixed
a leak
(folder_is_selectable): Updated.
-
+
2000-07-27 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-folder.c (imap_get_message_info): Now
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 <bertrand@helixcode.com>
* Dan Winship <danw@helixcode.com>
* Tiago Antào <tiagoantao@bigfoot.com>
+ * Jeffrey Stedfast <fejj@helixcode.com>
*
* 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);