aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2009-10-04 19:33:41 +0800
committerGustavo Noronha Silva <gns@gnome.org>2009-10-04 19:34:50 +0800
commitc7c283796e76a98571e89c28b9b936ac39420acc (patch)
tree8a06067f423b8167a88032012482956f220f91f8 /embed/ephy-web-view.c
parentdaa85f5615c0de460f2d019c1b223588247a6cdd (diff)
downloadgsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar
gsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar.gz
gsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar.bz2
gsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar.lz
gsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar.xz
gsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar.zst
gsoc2013-epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.zip
Improve localhost matching
Also consider localhost being used along with a port, with a path, and with a domain. Bug #595690
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a7ee21324..3d16eab0a 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1004,7 +1004,7 @@ ephy_web_view_init (EphyWebView *web_view)
priv->security_level = EPHY_WEB_VIEW_STATE_IS_UNKNOWN;
priv->monitor_directory = FALSE;
- priv->non_search_regex = g_regex_new ("(^localhost$|"
+ priv->non_search_regex = g_regex_new ("(^localhost(\\.[^[:space:]]+)?(:\\d+)?(/.*)?$|"
"^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]$|"
"^::[0-9a-f:]*$|" /* IPv6 literals */
"^[0-9a-f:]+:[0-9a-f:]*$|" /* IPv6 literals */