summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorparazyd <parazyd@dyne.org>2021-03-10 16:01:14 +0100
committerDaniel Friesel <derf@chaosdorf.de>2021-03-10 19:24:25 +0100
commit7cb8ce10e542f27b176b6ecfb1a1ff114d9fef2d (patch)
tree9fa059f08114b10c0e8e7030d41b7955d1d7dc6a /src/utils.c
parent0784921ad943d2e0b6a8befea306a9d331903c14 (diff)
Add support for gopher and gophers in utils/path_is_url.
Both of these protocols are supported in latest curl. Signed-off-by: parazyd <parazyd@dyne.org>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 087e7f6..eb128a2 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -146,6 +146,8 @@ char *estrjoin(const char *separator, ...)
char path_is_url(char *path) {
if ((!strncmp(path, "http://", 7))
|| (!strncmp(path, "https://", 8))
+ || (!strncmp(path, "gopher://", 9))
+ || (!strncmp(path, "gophers://", 10))
|| (!strncmp(path, "ftp://", 6))
|| (!strncmp(path, "file://", 7)))
return 1;