aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2012-03-11 03:52:04 +0800
committerGustavo Noronha Silva <gns@gnome.org>2012-03-14 23:28:26 +0800
commit398e670b1dd80cd0427a1db8a21dfc892bbe5eaf (patch)
tree27d409b421f85736d88fe27f6b05853e3fb12054 /embed/ephy-web-view.c
parent0ea81088cf97aee3d5bbb1f0ec470b8c805a746d (diff)
downloadgsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar
gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.gz
gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.bz2
gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.lz
gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.xz
gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.tar.zst
gsoc2013-epiphany-398e670b1dd80cd0427a1db8a21dfc892bbe5eaf.zip
Automatically prefix existing absolute paths with file://
https://bugzilla.gnome.org/show_bug.cgi?id=671792
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index f5249976c..c0b59db59 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2417,6 +2417,7 @@ normalize_or_autosearch_url (EphyWebView *view, const char *url)
/* If the string doesn't look like an URI, let's search it; */
if (!ephy_embed_utils_address_has_web_scheme (url) &&
scheme == NULL &&
+ !ephy_embed_utils_address_is_existing_absolute_filename (url) &&
priv->non_search_regex &&
!g_regex_match (priv->non_search_regex, url, 0, NULL)) {
char *query_param, *url_search;