mirror of
https://github.com/gophernicus/gophernicus.git
synced 2025-02-02 15:08:00 -05:00
Merge pull request #28 from gbmor-forks/hurl-irc-redirect
Allowing irc:// as safe redirect in file.c
This commit is contained in:
commit
0db24ec18b
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