aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Tom Adams <tom@holizz.com>2009-07-21 09:00:10 +0100
committerGravatar Tom Adams <tom@holizz.com>2009-07-22 00:02:27 +0100
commit77d97f482b887a62458ff1ca90cbe904fee5150c (patch)
tree21d1f89f1da52d1dbf419beab001e9e2fff80243
parent6618dc4cb5cbc2746aed7a256e19d72788db2d23 (diff)
Also whitelist file scheme.
-rw-r--r--README2
-rw-r--r--uzbl.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/README b/README
index 73b99fd..c97b25e 100644
--- 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
--- 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 ("");