Check for about: too.

Thanks to Claudio Alessi <smoppy@gmail.com>!
This commit is contained in:
Christoph Lohmann 2016-01-27 06:44:31 +01:00
parent 743fa9f3d1
commit fd6e80a279

2
surf.c
View file

@ -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);
}