file:// should be handled in surf too.

This commit is contained in:
Christoph Lohmann 2015-01-19 22:43:42 +01:00
parent d511226ea6
commit 87224dcdfa

1
surf.c
View File

@ -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);
}