mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-12-04 14:46:37 -05:00
hURL redirect pages now support https://
This commit is contained in:
parent
583b005f00
commit
c53b444e20
1
file.c
1
file.c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user