1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00:00

hURL redirect pages now support https://

This commit is contained in:
Kim Holviala 2017-06-16 09:10:06 +03:00
parent 583b005f00
commit c53b444e20

1
file.c
View File

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