From: Heiko Schlittermann (HS12-RIPE) Date: Sun, 28 Mar 2021 09:00:06 +0000 (+0200) Subject: appendfile X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/c29b50d2fe17cc108d751175ed4f4113c25c1768?hp=a6da9c67acaee699616516be141d600cc178a633 appendfile --- diff --git a/src/src/transports/appendfile.c b/src/src/transports/appendfile.c index 8ab8b6016..7dbbaa2f9 100644 --- a/src/src/transports/appendfile.c +++ b/src/src/transports/appendfile.c @@ -1286,12 +1286,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] != '/') {