Skip to content

Commit

Permalink
Merge pull request #478 from smichaelsen/patch-1
Browse files Browse the repository at this point in the history
Fix unsafe array access to $mediaData['use_jumpurl']
  • Loading branch information
kartolo authored Feb 21, 2024
2 parents ed7e7e5 + 2c377d5 commit 07a5100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Dmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ public function extractHyperLinks(): void
// get all media and search for use_jumpurl then add it to the hrefs array
$this->extractMediaLinks();
foreach ($this->theParts['html']['media'] as $mediaData) {
if ($mediaData['use_jumpurl'] === 1) {
if (($mediaData['use_jumpurl'] ?? null) === 1) {
$this->theParts['html']['hrefs'][$mediaData['ref']] = $mediaData;
}
}
Expand Down

0 comments on commit 07a5100

Please sign in to comment.