summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-01-19 22:43:42 +0100
committerChristoph Lohmann <20h@r-36.net>2015-01-19 22:43:42 +0100
commit87224dcdfa4ae66870ff404675b27c242c1ffd49 (patch)
treea00bc7976caded225773d3a4268d03541effe079 /surf.c
parentd511226ea64345be7a63662cdf9c9a20fb79a6d9 (diff)
downloadsurf-87224dcdfa4ae66870ff404675b27c242c1ffd49.tar.gz
surf-87224dcdfa4ae66870ff404675b27c242c1ffd49.tar.bz2
surf-87224dcdfa4ae66870ff404675b27c242c1ffd49.zip
file:// should be handled in surf too.
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index 3fbe743..43fd490 100644
--- a/surf.c
+++ b/surf.c
@@ -220,6 +220,7 @@ beforerequest(WebKitWebView *w, WebKitWebFrame *f, WebKitWebResource *r,
if(!g_str_has_prefix(uri, "http://") \
&& !g_str_has_prefix(uri, "https://") \
&& !g_str_has_prefix(uri, "about:") \
+ && !g_str_has_prefix(uri, "file://") \
&& strlen(uri) > 0) {
handleplumb(c, w, uri);
}