aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-03-10 00:59:56 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-03-10 00:59:56 +0800
commit7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb (patch)
tree9f91afdd61c8601ec250f4c10e5265ae46f692f6 /lib
parent3423f0766d8b935e0c35b6d379bd345f14dc0bcb (diff)
downloadgsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.tar
gsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.tar.gz
gsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.tar.bz2
gsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.tar.lz
gsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.tar.xz
gsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.tar.zst
gsoc2013-epiphany-7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-profile-migration.c5
1 files changed, 3 insertions, 2 deletions
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);