diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2009-10-04 12:33:41 +0100 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2009-10-04 12:34:50 +0100 |
commit | c7c283796e76a98571e89c28b9b936ac39420acc (patch) | |
tree | 8a06067f423b8167a88032012482956f220f91f8 | |
parent | daa85f5615c0de460f2d019c1b223588247a6cdd (diff) | |
download | epiphany-c7c283796e76a98571e89c28b9b936ac39420acc.tar.gz |
Improve localhost matching
Also consider localhost being used along with a port, with a path, and
with a domain.
Bug #595690
-rw-r--r-- | embed/ephy-web-view.c | 2 |
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 */ |