If the path doesn't begin with a / and there is a host, prepend a / to the
authorJeffrey Stedfast <fejj@helixcode.com>
Thu, 27 Jul 2000 23:49:47 +0000 (23:49 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Thu, 27 Jul 2000 23:49:47 +0000 (23:49 +0000)
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.

camel/ChangeLog
camel/camel-url.c

index df27766..74b8ecb 100644 (file)
@@ -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
index bf578a4..6038500 100644 (file)
@@ -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);