From: Heiko Schlittermann (HS12-RIPE) Date: Sun, 28 Mar 2021 09:00:06 +0000 (+0200) Subject: appendfile X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/40133802626fbc203b1162d197154eb60e562bdf?hp=0b84b1f439171f96ba8ca5888222c62f2cd2bc05 appendfile --- 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] != '/') {