** Fix for bug #341004
authorChristian Kellner <gicmo@gnome.org>
Mon, 17 Mar 2008 11:35:46 +0000 (11:35 +0000)
committerChristian Kellner <gicmo@src.gnome.org>
Mon, 17 Mar 2008 11:35:46 +0000 (11:35 +0000)
2008-03-17  Christian Kellner  <gicmo@gnome.org>

** Fix for bug #341004

* camel-url.c: (camel_url_to_string): Hide the auth mech when
CAMEL_URL_HIDE_AUTH is specified.

svn path=/trunk/; revision=8576

camel/ChangeLog
camel/camel-url.c

index 6fba511..356a68b 100644 (file)
@@ -1,3 +1,10 @@
+2008-03-17  Christian Kellner  <gicmo@gnome.org>
+
+       ** Fix for bug #341004
+
+       * camel-url.c: (camel_url_to_string): Hide the auth mech when
+       CAMEL_URL_HIDE_AUTH is specified.
+
 2008-02-20  Jeff Cai<jeff.cai@sun.com>
 
        ** Fix for bug #517190
index 6c22974..cdd8577 100644 (file)
@@ -352,7 +352,7 @@ camel_url_to_string (CamelURL *url, guint32 flags)
                g_string_append (str, "//");
                if (url->user) {
                        append_url_encoded (str, url->user, ":;@/");
-                       if (url->authmech && *url->authmech) {
+                       if (url->authmech && *url->authmech && !(flags & CAMEL_URL_HIDE_AUTH)) {
                                g_string_append (str, ";auth=");
                                append_url_encoded (str, url->authmech, ":@/");
                        }