Also whitelist file scheme.
authorTom Adams <tom@holizz.com>
Tue, 21 Jul 2009 08:00:10 +0000 (09:00 +0100)
committerTom Adams <tom@holizz.com>
Tue, 21 Jul 2009 23:02:27 +0000 (00:02 +0100)
README
uzbl.c

diff --git a/README b/README
index 73b99fd..c97b25e 100644 (file)
--- a/README
+++ b/README
@@ -198,7 +198,7 @@ Some variables have callback functions which will get called after setting the v
   - download_handler
   - cookie_handler
   - new_window: handler to execute to invoke new uzbl window (TODO better name)
-  - scheme_handler: handler to be executed for all URIs not of the http/https/data schema
+  - scheme_handler: handler to be executed for all URIs not of the http/https/data/about/file schema
   - fifo_dir: location to store fifo's
   - socket_dir: location to store sockets
   - http_debug: http debug mode (value 0-3)
diff --git a/uzbl.c b/uzbl.c
index bb8c152..1a5094e 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -534,6 +534,7 @@ navigation_decision_cb (WebKitWebView *web_view, WebKitWebFrame *frame, WebKitNe
     if (suri && strcmp (suri->scheme, "http") &&
                 strcmp (suri->scheme, "https") &&
                 strcmp (suri->scheme, "data") &&
+                strcmp (suri->scheme, "file") &&
                 strcmp (suri->scheme, "about")) {
         if (uzbl.behave.scheme_handler) {
             GString *s = g_string_new ("");