mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-10-27 05:20:18 -04: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);
|
sstrlcpy(dest, st->req_selector + 4);
|
||||||
|
|
||||||
if (sstrncmp(dest, "http://") != MATCH &&
|
if (sstrncmp(dest, "http://") != MATCH &&
|
||||||
|
sstrncmp(dest, "https://") != MATCH &&
|
||||||
sstrncmp(dest, "ftp://") != MATCH &&
|
sstrncmp(dest, "ftp://") != MATCH &&
|
||||||
sstrncmp(dest, "mailto:") != MATCH)
|
sstrncmp(dest, "mailto:") != MATCH)
|
||||||
die(st, ERR_ACCESS, "Refusing to HTTP redirect unsafe protocols");
|
die(st, ERR_ACCESS, "Refusing to HTTP redirect unsafe protocols");
|
||||||
|
Loading…
Reference in New Issue
Block a user