X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsrc%2Ftransports%2Fpipe.c;h=da49307b1c6cd25e7783a2f7a8bb8c2476fca31a;hb=6b69b71028f15c7ba3157bac955103b764326f60;hp=1cb574ee72c791a4e98b2699774b930e9b18fd62;hpb=2bde51964df7b459f1cc6853ffa7f5466d02554f;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/transports/pipe.c b/src/src/transports/pipe.c index 1cb574ee7..da49307b1 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