diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2013-01-11 16:11:11 +0800 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2013-01-11 16:11:11 +0800 |
commit | 11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8 (patch) | |
tree | d1cb8cb1131c9c202dd0a7c3f33e0b351d52180d /lib | |
parent | 23525a8bc71de569ade7dd809d2473eacbcee77c (diff) | |
download | gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.tar gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.tar.gz gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.tar.bz2 gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.tar.lz gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.tar.xz gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.tar.zst gsoc2013-epiphany-11d8b3ed3849e4ed18e9741af5ce316c4ccb29b8.zip |
ephy-string: Handle about: and ephy-about: as special cases in ephy_string_get_host_name()
And return NULL like for file:// URIs.
https://bugzilla.gnome.org/show_bug.cgi?id=691416
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-string.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ephy-string.c b/lib/ephy-string.c index 027c02a81..54b83125f 100644 --- a/lib/ephy-string.c +++ b/lib/ephy-string.c @@ -433,7 +433,11 @@ ephy_string_get_host_name (const char *url) SoupURI *uri; char *ret; - if (url == NULL || g_str_has_prefix (url, "file://")) return NULL; + if (url == NULL || + g_str_has_prefix (url, "file://") || + g_str_has_prefix (url, "about:") || + g_str_has_prefix (url, "ephy-about:")) + return NULL; uri = soup_uri_new (url); /* If uri is NULL it's very possible that we just got |