aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--utils.vala6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils.vala b/utils.vala
index 715e0b8..fad152e 100644
--- a/utils.vala
+++ b/utils.vala
@@ -22,7 +22,11 @@ class Utils {
if (u == null)
u = uri;
- if (u.has_prefix("ftp://") || u.has_prefix("http://") || u.has_prefix("https://")) {
+ if (u.has_prefix("ftp://") ||
+ u.has_prefix("gopher://") ||
+ u.has_prefix("http://") ||
+ u.has_prefix("https://") ||
+ u.has_prefix("rtmp://")) {
int a = u.index_of("/", 0) + 2; // character after second slash
int b = u.index_of("/", a); // next slash after hostname...
if (b < 0)