diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/session.c | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 921f31a7cb..3aeb736c56 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-04-03 Dan Winship <danw@ximian.com> + + * session.c (mail_session_remember_password): Use the same + URL-transforming rules we use when hashing the password so this + actually works. + 2001-04-02 Iain Holmes <iain@ximian.com> * importers/elm-importer.c (elm_can_import): Call is_kmail to check for diff --git a/mail/session.c b/mail/session.c index d4ef2293f6..d95367d77c 100644 --- a/mail/session.c +++ b/mail/session.c @@ -217,9 +217,17 @@ maybe_remember_password (gpointer key, gpointer password, gpointer url) } void -mail_session_remember_password (const char *url) +mail_session_remember_password (const char *url_string) { - g_hash_table_foreach (passwords, maybe_remember_password, (void *) url); + CamelURL *url; + char *simple_url; + + url = camel_url_new (url_string, NULL); + simple_url = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS); + camel_url_free (url); + + g_hash_table_foreach (passwords, maybe_remember_password, simple_url); + g_free (simple_url); } void |