summaryrefslogtreecommitdiff
path: root/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/browser.c b/browser.c
index 1845345..4ca34e6 100644
--- a/browser.c
+++ b/browser.c
@@ -429,7 +429,8 @@ ensure_http_prefix(const gchar *t)
f = g_ascii_strdown(t, -1);
if (!g_str_has_prefix(f, "http://") &&
- !g_str_has_prefix(f, "https://"))
+ !g_str_has_prefix(f, "https://") &&
+ !g_str_has_prefix(f, "file://"))
{
g_free(f);
f = g_strdup_printf("http://%s", t);