summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-15 12:17:09 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-15 12:17:09 +0200
commitc58553586cd363ccd66b33c5a3f553660cbb16e4 (patch)
tree5f6032ed51d921c04d6195aecd7c1f753f2d4e24
parent610021fe16e5658d232324efdbb66a7c6233639c (diff)
downloadlariza-c58553586cd363ccd66b33c5a3f553660cbb16e4.tar.gz
ensure_http_prefix knows about file://
-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);