diff --git a/Classes/DirectMailUtility.php b/Classes/DirectMailUtility.php index cf0dcd0fa..5878f46a2 100644 --- a/Classes/DirectMailUtility.php +++ b/Classes/DirectMailUtility.php @@ -1582,6 +1582,13 @@ public static function updatePagesTSconfig($id, array $pageTs, $tsConfPrefix, $i } $set = array(); foreach ($pageTs as $f => $v) { + // only get the first line of input and ignore the rest + $v = strtok(trim($v), "\r\n"); + // if token is not found (false) + if ($v === false) { + // then set empty string + $v = ''; + } $f = $tsConfPrefix . $f; if ((!isset($impParams[$f]) && trim($v)) || strcmp(trim($impParams[$f]), trim($v))) { $set[$f] = trim($v); diff --git a/ext_emconf.php b/ext_emconf.php index f830e8749..6f1e563b9 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -14,7 +14,7 @@ 'title' => 'Direct Mail', 'description' => 'Advanced Direct Mail/Newsletter mailer system with sophisticated options for personalization of emails including response statistics.', 'category' => 'module', - 'version' => '7.0.1', + 'version' => '7.0.3', 'state' => 'stable', 'clearcacheonload' => 0, 'lockType' => '',