summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2016-01-27 06:44:31 +0100
committerChristoph Lohmann <20h@r-36.net>2016-01-27 06:44:31 +0100
commitfd6e80a2796505d97775fba4e40a943e59678f2b (patch)
tree9df620e042bacefb8761ea69d73488ef75dce0e7
parent743fa9f3d19af8166b8466f35c464c402e31f554 (diff)
downloadsurf-fd6e80a2796505d97775fba4e40a943e59678f2b.tar.gz
surf-fd6e80a2796505d97775fba4e40a943e59678f2b.tar.bz2
surf-fd6e80a2796505d97775fba4e40a943e59678f2b.zip
Check for about: too.
Thanks to Claudio Alessi <smoppy@gmail.com>!
-rw-r--r--surf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index 108485b..23c49bd 100644
--- a/surf.c
+++ b/surf.c
@@ -840,7 +840,7 @@ loaduri(Client *c, const Arg *arg)
u = g_strdup_printf("file://%s", rp);
free(rp);
} else {
- u = g_strrstr(uri, "://") ? g_strdup(uri)
+ u = g_strrstr(uri, "://") || g_str_has_prefix(uri, "about:") ? g_strdup(uri)
: g_strdup_printf("http://%s", uri);
}