diff options
author | Dan Winship <danw@src.gnome.org> | 2001-04-04 02:47:23 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-04-04 02:47:23 +0800 |
commit | 1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d (patch) | |
tree | 2390d1e65809985dc777f881812e0f62b927a99b /mail | |
parent | f24a51e470f5de3beb16891d6e51ab4e4a228bed (diff) | |
download | gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar.gz gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar.bz2 gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar.lz gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar.xz gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar.zst gsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.zip |
Use the same URL-transforming rules we use when hashing the password so
* session.c (mail_session_remember_password): Use the same
URL-transforming rules we use when hashing the password so this
actually works.
svn path=/trunk/; revision=9137
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 |