Skip to content

Commit c19d755

Browse files
authored
Merge pull request #454 from kartolo/hotfix/2023110110000013_v6
[Security] prevent user to input multiline value
2 parents fb06570 + 1c69f4b commit c19d755

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Classes/DirectMailUtility.php

+8
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,14 @@ public static function updatePagesTSconfig($id, array $pageTs, $tsConfPrefix, $i
16251625
}
16261626
$set = array();
16271627
foreach ($pageTs as $f => $v) {
1628+
// only get the first line of input and ignore the rest
1629+
$v = strtok(trim($v), "\r\n");
1630+
// if token is not found (false)
1631+
if ($v === false) {
1632+
// then set empty string
1633+
$v = '';
1634+
}
1635+
16281636
$f = $tsConfPrefix . $f;
16291637
if ((!isset($impParams[$f]) && trim($v)) || strcmp(trim($impParams[$f]), trim($v))) {
16301638
$set[$f] = trim($v);

ext_emconf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'description' => 'Advanced Direct Mail/Newsletter mailer system with sophisticated options for personalization of emails including response statistics.',
1616
'category' => 'module',
1717
'shy' => 0,
18-
'version' => '6.0.2',
18+
'version' => '6.0.3',
1919
'dependencies' => 'cms,tt_address',
2020
'conflicts' => 'sr_direct_mail_ext,it_dmail_fix,plugin_mgm,direct_mail_123',
2121
'priority' => '',

0 commit comments

Comments
 (0)