From: Heiko Schlittermann (HS12-RIPE) Date: Thu, 1 Apr 2021 19:33:50 +0000 (+0200) Subject: expand X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/981193d6fa863d1d6ea8c0a9b7d5aa4807aeceb7 expand --- diff --git a/src/src/expand.c b/src/src/expand.c index 8a571b2d9..e0b94e237 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -4485,13 +4485,13 @@ DEBUG(D_expand) f.expand_string_forcedfail = FALSE; expand_string_message = US""; -if (is_tainted(string)) +{ uschar *m; +if (m = is_tainted2(string, LOG_MAIN|LOG_PANIC, "Tainted string '%s' in expansion", s)) { - expand_string_message = - string_sprintf("attempt to expand tainted string '%s'", s); - log_write(0, LOG_MAIN|LOG_PANIC, "%s", expand_string_message); + expand_string_message = m; goto EXPAND_FAILED; } +} while (*s) {