[epiphany] migration: fix leading * in password field name



commit 7bad058b8d5fb5e7a7584d69ad8b7c0f743ba8cb
Author: Diego Escalante Urrelo <descalante igalia com>
Date:   Tue Mar 9 11:59:56 2010 -0500

    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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/ephy-profile-migration.c b/lib/ephy-profile-migration.c
index eee329a..fd717cc 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]