From d00fd82b4974ec336b9e54ad2c2e3892983336ae Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 22 May 2019 01:17:24 -0400 Subject: [PATCH] Allowing irc:// as safe redirect in file.c --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index cae4cfb..ca24ad0 100644 --- a/file.c +++ b/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");