[hackers] [surf] Data: is part of the browser too. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Mon, 19 Jan 2015 22:51:41 +0100 (CET)

commit 68813b3a4640dcfcbe002a1ff5803f04b9c50c06
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Mon Jan 19 22:51:29 2015 +0100

    Data: is part of the browser too.

diff --git a/surf.c b/surf.c
index 43fd490..42dbf21 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -221,6 +221,7 @@ beforerequest(WebKitWebView *w, WebKitWebFrame *f, WebKitWebResource *r,
                         && !g_str_has_prefix(uri, "https://") \
                         && !g_str_has_prefix(uri, "about:") \
                         && !g_str_has_prefix(uri, "file://") \
+ && !g_str_has_prefix(uri, "data:") \
                         && strlen(uri) > 0) {
                 handleplumb(c, w, uri);
         }
Received on Mon Jan 19 2015 - 22:51:41 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 19 2015 - 23:00:17 CET