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:
parent
ef6cb59288
commit
d00fd82b49
1
file.c
1
file.c
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user