[epiphany] Improve localhost matching
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] Improve localhost matching
- Date: Wed, 7 Oct 2009 10:17:50 +0000 (UTC)
commit c7c283796e76a98571e89c28b9b936ac39420acc
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 a7ee213..3d16eab 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]