From fcf23c9130758199c6519dbc4e59d49254f4681f Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 7 Aug 2012 17:34:50 +0200 Subject: ephy-web-view: fix URI normalization Give SoupTLD nothing but the TLD when trying to figure out whether a URI actually has a TLD, otherwise it won't be happy. In particular: '.gnome.org' -> Not OK '.org' -> OK Add a test for this case. --- embed/ephy-web-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 3ee698bc5..d8e5c7a00 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2833,7 +2833,7 @@ is_public_domain (EphyWebView *view, const char *url) if (g_str_equal (url, "localhost")) return TRUE; - url = g_strstr_len (url, -1, "."); + url = g_strrstr (url, "."); if (!url || *url == '\0') return FALSE; -- cgit