From: Christoph Lohmann <20h@r-36.net> Date: Mon, 19 Jan 2015 21:43:42 +0000 (+0100) Subject: file:// should be handled in surf too. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=87224dcdfa4ae66870ff404675b27c242c1ffd49;p=surf.git file:// should be handled in surf too. --- 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); }