From 40133802626fbc203b1162d197154eb60e562bdf Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Sun, 28 Mar 2021 11:00:06 +0200 Subject: [PATCH] appendfile --- src/src/transports/appendfile.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/src/transports/appendfile.c b/src/src/transports/appendfile.c index 3f2c4e443..dbb8d75a3 100644 --- a/src/src/transports/appendfile.c +++ b/src/src/transports/appendfile.c @@ -1282,12 +1282,14 @@ if (!(path = expand_string(fdname))) expand_string_message); goto ret_panic; } -if (is_tainted(path)) +{ uschar *m; +if (m = is_tainted2(path, 0, "Tainted '%s' (file or directory " + "name for %s transport) not permitted", path, tblock->name)) { - addr->message = string_sprintf("Tainted '%s' (file or directory " - "name for %s transport) not permitted", path, tblock->name); + addr->message = m; goto ret_panic; } +} if (path[0] != '/') { -- 2.30.2