[epiphany/gnome-2-28] Improve localhost matching



commit 7bc2f1cda5b2de2c5a613181f1eb59c0d3542153
Author: Gustavo Noronha Silva <gns gnome org>
Date:   Sun Oct 4 12:33:41 2009 +0100

    Improve localhost matching
    
    Also consider localhost being used along with a port, with a path, and
    with a domain.
    
    Bug #595690

 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 f59ffa2..ea44421 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1018,7 +1018,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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]