From 7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Tue, 9 Mar 2010 11:59:56 -0500 Subject: migration: fix leading * in password field name Password form fields are marked with a *, but this * was not removed when storing the field name so this led to all the passwords field names to be migrated with the leading *. Bug #608687 --- lib/ephy-profile-migration.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/ephy-profile-migration.c b/lib/ephy-profile-migration.c index eee329afb..fd717cc0a 100644 --- a/lib/ephy-profile-migration.c +++ b/lib/ephy-profile-migration.c @@ -263,7 +263,7 @@ parse_and_decrypt_signons (const char *signons, begin++; /* Skip username element */ } username = decrypt (lines[begin++]); - + /* The password */ /* The element name has a leading '*' */ if (lines[begin][0] == '*') { @@ -296,9 +296,10 @@ parse_and_decrypt_signons (const char *signons, !g_str_equal (form_username, "") && !g_str_equal (form_password, "*")) { char *u = soup_uri_to_string (uri, FALSE); + /* We skip the '*' at the beginning of form_password. */ _ephy_profile_store_form_auth_data (u, form_username, - form_password, + form_password+1, username, password); g_free (u); -- cgit