[epiphany] Remove path when normalizing urls for keyring query
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Remove path when normalizing urls for keyring query
- Date: Thu, 25 Mar 2010 01:44:56 +0000 (UTC)
commit 3d770c9d1178eaa45c6f8bb8f82dd7cf7f2b489f
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Mon Mar 8 21:09:44 2010 -0500
Remove path when normalizing urls for keyring query
This means we store/retrieve "http://www.gnome.org/" instead of
"http://www.gnome.org/login/". User+passwords are site-wide as long as the form
elements match. This also makes migrated gecko passwords work.
Bug #613065
lib/ephy-profile-migration.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/ephy-profile-migration.c b/lib/ephy-profile-migration.c
index 991a212..73584ef 100644
--- a/lib/ephy-profile-migration.c
+++ b/lib/ephy-profile-migration.c
@@ -446,6 +446,8 @@ normalize_and_prepare_uri (SoupURI *uri,
if (g_str_equal (uri->scheme, SOUP_URI_SCHEME_HTTPS))
soup_uri_set_scheme (uri, SOUP_URI_SCHEME_HTTP);
+ soup_uri_set_path (uri, NULL);
+
/* Store the form login and password names encoded in the
* URL. A bit of an abuse of keyring, but oh well */
soup_uri_set_query_from_fields (uri,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]