Commit d7bf532c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch '6401-backtick-in-sendmail' into 'master'

#Bug 6401 Handle Backticks in sendmail

See merge request !58
parents 194bbd0c 85bd1cfe
Pipeline #764 passed with stage
in 1 minute and 40 seconds
...@@ -211,6 +211,7 @@ class SendMail { ...@@ -211,6 +211,7 @@ class SendMail {
OnArray::arrayEscapeshellarg($args); OnArray::arrayEscapeshellarg($args);
$cmd = $sendEmail . ' ' . implode(' ', $args); $cmd = $sendEmail . ' ' . implode(' ', $args);
$cmd = str_replace('`', '\`', $cmd); // escape backticks (escapeshellcmd would be too thorough)
exec($cmd, $arr, $rc); exec($cmd, $arr, $rc);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment