1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-09 06:20:43 +00:00

Allowing irc:// as safe redirect in file.c

This commit is contained in:
Ben Morrison 2019-05-22 01:17:24 -04:00
parent ef6cb59288
commit d00fd82b49
No known key found for this signature in database
GPG Key ID: 8F192E4720BB0DAC

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");