aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-02-10 19:46:32 +0800
committerXan Lopez <xan@gnome.org>2010-02-10 19:46:32 +0800
commit6f9cc830feb72fcdaa95b85a08912fbca09e78cf (patch)
tree859386ada6311ff99eb05c410c21f9d0eea1b430 /embed
parent16a20a4bc75df0a6503fc2e86dc3d119ccf8858d (diff)
downloadgsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.tar
gsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.tar.gz
gsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.tar.bz2
gsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.tar.lz
gsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.tar.xz
gsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.tar.zst
gsoc2013-epiphany-6f9cc830feb72fcdaa95b85a08912fbca09e78cf.zip
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.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-web-view.c8
1 files 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);