pipe
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 2 Apr 2021 15:30:27 +0000 (17:30 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 23 Apr 2021 20:55:30 +0000 (22:55 +0200)
src/src/transports/pipe.c

index 27422bd4275253faff52eec52ed1039d011d3382..4c9e68beb263d93fbfc48871f60d3b29ac39b2cf 100644 (file)
@@ -599,13 +599,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