You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
php-src runs php_escape_shell_cmd() on $additional_params (arg 5) before appending to sendmail_path. mail.force_extra_parameters INI overrides the caller params when set. This compiler either ignores arg 5 for the pipe or concatenates unescaped.
Category
stdlib| child of #3285 (mail transport depth)Problem
php-src runs
php_escape_shell_cmd()on$additional_params(arg 5) before appending tosendmail_path.mail.force_extra_parametersINI overrides the caller params when set. This compiler either ignores arg 5 for the pipe or concatenates unescaped.php-src reference
ext/standard/mail.c—PHP_FUNCTION(mail)extra_cmd /mail.force_extra_parametersext/standard/exec.c—php_escape_shell_cmdRepro
Scope
ext/standard/VmMail.phpescapeshellcmdbuiltin if present$1…/ command lineDone when (php-src-strict)
mail.force_extra_parametersoverrides arg 5 when setRelated
escapeshellcmdsurface