From: mortenp Date: Tue, 11 May 2004 20:24:56 +0000 (+1000) Subject: added check for slash in list control string X-Git-Tag: RELEASE_1_0_0~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83a2bbdb6f3e9775e68c8482d7d17a0d50b33a5;p=thirdparty%2Fmlmmj.git added check for slash in list control string --- diff --git a/src/listcontrol.c b/src/listcontrol.c index dc93f387..86c71bee 100644 --- a/src/listcontrol.c +++ b/src/listcontrol.c @@ -105,6 +105,13 @@ int listcontrol(const char *mailfilename, const char *listdir, (controlstr[cmdlen] == '-')) { param = strdup(controlstr + cmdlen + 1); MY_ASSERT(param); + if (strchr(param, '/')) { + errno = 0; + log_error(LOG_ARGS, "Slash (/) in" + " list control request," + " discarding mail"); + exit(EXIT_SUCCESS); + } free(controlstr); break; } else if (!ctrl_commands[ctrl].accepts_parameter &&