diff options
-rw-r--r-- | utils.vala | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |