Skip to content

Commit 3a9cef7

Browse files
committed
Merge branch '11.x'
2 parents fad47b5 + f2c0503 commit 3a9cef7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Classes/Dmailer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ public function prepare(array $row): void
247247
}
248248

249249
//$this->encoding = $row['encoding'];
250-
$this->theParts = unserialize(base64_decode($row['mailContent']));
251-
$this->messageid = $this->theParts['messageid'];
250+
$this->theParts = unserialize(base64_decode((string)$row['mailContent'])) ?: [];
251+
$this->messageid = $this->theParts['messageid'] ?? 0;
252252
$this->subject = $this->ensureCorrectEncoding($row['subject']);
253253
$this->fromEmail = $row['from_email'];
254254
$this->fromName = $this->ensureCorrectEncoding($row['from_name']);
@@ -262,7 +262,7 @@ public function prepare(array $row): void
262262
$this->dmailer['sectionBoundary'] = '<!--DMAILER_SECTION_BOUNDARY';
263263
$this->dmailer['html_content'] = $this->theParts['html']['content'] ?? '';
264264
$this->dmailer['plain_content'] = $this->theParts['plain']['content'] ?? '';
265-
$this->dmailer['messageID'] = $this->theParts['messageid'];
265+
$this->dmailer['messageID'] = $this->theParts['messageid'] ?? 0;
266266
$this->dmailer['sys_dmail_uid'] = $row['uid'];
267267
$this->dmailer['sys_dmail_rec'] = $row;
268268
$this->dmailer['boundaryParts_html'] = explode($this->dmailer['sectionBoundary'], '_END-->' . $this->dmailer['html_content']);

Classes/Module/DmailController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ protected function moduleContent()
328328
$data['info']['dmail']['cmd'] = 'send_test';
329329

330330
// add attachment here, since attachment added in 2nd step
331-
$unserializedMailContent = unserialize(base64_decode($row['mailContent']));
331+
$unserializedMailContent = unserialize(base64_decode((string)$row['mailContent']));
332332
$temp = $this->compileQuickMail($row, $unserializedMailContent['plain']['content'] ?? '', false);
333333
if ($temp['errorTitle']) {
334334
$this->messageQueue->addMessage($this->createFlashMessage($temp['errorText'], $temp['errorTitle'], 2, false));

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"require": {
2525
"typo3/cms-core": "^11.5",
2626
"typo3/cms-dashboard": "^11.5",
27-
"php": "^7.4 || ^8.0 || ^8.1",
27+
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2",
2828
"friendsoftypo3/tt-address": "^6.0 || ^7.0 || ^8.0",
2929
"tedivm/fetch": "0.7.*"
3030
},

ext_emconf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'author_company' => 'd.k.d Internet Service GmbH',
1010
'state' => 'stable',
1111
'clearcacheonload' => 0,
12-
'version' => '9.4.0',
12+
'version' => '9.5.1',
1313
'constraints' => [
1414
'depends' => [
1515
'typo3' => '11.5.0-11.99.99',

0 commit comments

Comments
 (0)