Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
85bd1cfe
Commit
85bd1cfe
authored
Jul 27, 2018
by
Elias Villiger
Browse files
#Bug 6401 Handle Backticks in sendmail
parent
fef1a122
Pipeline
#693
passed with stage
in 1 minute and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/report/SendMail.php
View file @
85bd1cfe
...
...
@@ -211,6 +211,7 @@ class SendMail {
OnArray
::
arrayEscapeshellarg
(
$args
);
$cmd
=
$sendEmail
.
' '
.
implode
(
' '
,
$args
);
$cmd
=
str_replace
(
'`'
,
'\`'
,
$cmd
);
// escape backticks (escapeshellcmd would be too thorough)
exec
(
$cmd
,
$arr
,
$rc
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment