From e062f95e4bf597ed371ddfefe066831a6876bb94 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Fri, 2 Apr 2021 17:30:27 +0200 Subject: [PATCH 1/1] pipe --- src/src/transports/pipe.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/src/transports/pipe.c b/src/src/transports/pipe.c index 1cb574ee7..929681422 100644 --- a/src/src/transports/pipe.c +++ b/src/src/transports/pipe.c @@ -592,13 +592,16 @@ if (!cmd || !*cmd) tblock->name); return FALSE; } -if (is_tainted(cmd)) + +{ uschar *m; +if (m = is_tainted2(cmd, 0, "Tainted '%s' (command " + "for %s transport) not permitted", cmd, tblock->name)) { - addr->message = string_sprintf("Tainted '%s' (command " - "for %s transport) not permitted", cmd, tblock->name); addr->transport_return = PANIC; + addr->message = m; return FALSE; } +} /* When a pipe is set up by a filter file, there may be values for $thisaddress and numerical the variables in existence. These are passed in -- 2.30.2