aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2011-08-03 19:37:56 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2011-08-11 05:12:21 +0800
commitcb17bdeb2aa48c3d9d47027fa94a53e010421f89 (patch)
tree4110e5da20097938c5ddcd3dd1daa625fd2d792c
parentadd3288ff433e92739e3a4245068fb41e10fa450 (diff)
downloadgsoc2013-epiphany-cb17bdeb2aa48c3d9d47027fa94a53e010421f89.tar.gz
gsoc2013-epiphany-cb17bdeb2aa48c3d9d47027fa94a53e010421f89.tar.zst
gsoc2013-epiphany-cb17bdeb2aa48c3d9d47027fa94a53e010421f89.zip
e-web-view: use ephy_string_get_host_name
Bug #655899
-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 19ff7d4f7..6f78d4f68 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -680,7 +680,7 @@ store_password (GtkInfoBar *info_bar, gint response_id, gpointer data)
char *name_field_value = store_data->name_value;
char *password_field_name = store_data->password_field;
char *password_field_value = store_data->password_value;
- SoupURI *soup_uri;
+ char *host;
/* We are no longer showing a store password infobar */
web_view->priv->password_info_bar = NULL;
@@ -700,14 +700,14 @@ store_password (GtkInfoBar *info_bar, gint response_id, gpointer data)
password_field_value);
/* Update internal caching */
- soup_uri = soup_uri_new (uri);
+ host = ephy_string_get_host_name (uri);
ephy_embed_single_add_form_auth (EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (embed_shell)),
- soup_uri->host,
+ host,
name_field_name,
password_field_name,
name_field_value);
- soup_uri_free (soup_uri);
+ g_free (host);
store_password_data_free (store_data);
gtk_widget_destroy (GTK_WIDGET (info_bar));