diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-06-15 12:17:09 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-06-15 12:17:09 +0200 |
commit | c58553586cd363ccd66b33c5a3f553660cbb16e4 (patch) | |
tree | 5f6032ed51d921c04d6195aecd7c1f753f2d4e24 | |
parent | 610021fe16e5658d232324efdbb66a7c6233639c (diff) | |
download | lariza-c58553586cd363ccd66b33c5a3f553660cbb16e4.tar.gz |
ensure_http_prefix knows about file://
-rw-r--r-- | browser.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |