From 6f9cc830feb72fcdaa95b85a08912fbca09e78cf Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 10 Feb 2010 13:46:32 +0200 Subject: ephy-web-view: fix password storage A previous patch to fix it from crashing on NULL strings changed how the strings are managed in general, so we were using variables containing garbage in some cases. --- embed/ephy-web-view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index ed745aecc..e87416dc1 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1046,10 +1046,10 @@ form_submitted_cb (JSContextRef js_context, store_data = g_slice_new (StorePasswordData); store_data->uri = soup_uri_to_string (uri, FALSE); - store_data->name_field = name_field_name; - store_data->name_value = name_field_value; - store_data->password_field = password_field_name; - store_data->password_value = password_field_value; + store_data->name_field = g_strdup (name_field_name); + store_data->name_value = g_strdup (name_field_value); + store_data->password_field = g_strdup (password_field_name); + store_data->password_value = g_strdup (password_field_value); store_data->embed = EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (web_view); soup_uri_free (uri); -- cgit v1.2.3