aboutsummaryrefslogtreecommitdiffstats
path: root/mail/session.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-04 02:47:23 +0800
committerDan Winship <danw@src.gnome.org>2001-04-04 02:47:23 +0800
commit1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d (patch)
tree2390d1e65809985dc777f881812e0f62b927a99b /mail/session.c
parentf24a51e470f5de3beb16891d6e51ab4e4a228bed (diff)
downloadgsoc2013-evolution-1c32ce15c29c06507f7ff3ab6a1aa26b7bbc024d.tar.gz
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/session.c')
-rw-r--r--mail/session.c12
1 files changed, 10 insertions, 2 deletions
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