1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-09-29 04:45:56 -04:00

Merge pull request #28 from gbmor-forks/hurl-irc-redirect

Allowing irc:// as safe redirect in file.c
This commit is contained in:
fosslinux 2019-05-24 17:16:19 +10:00 committed by GitHub
commit 0db24ec18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
file.c
View File

@ -110,6 +110,7 @@ void url_redirect(state *st)
if (sstrncmp(dest, "http://") != MATCH &&
sstrncmp(dest, "https://") != MATCH &&
sstrncmp(dest, "ftp://") != MATCH &&
sstrncmp(dest, "irc://") != MATCH &&
sstrncmp(dest, "mailto:") != MATCH)
die(st, ERR_ACCESS, "Refusing to HTTP redirect unsafe protocols");