Skip to content

Commit

Permalink
Update AttachmentEmbedder.php
Browse files Browse the repository at this point in the history
issue #57
  • Loading branch information
eduardokum authored Mar 12, 2024
1 parent dfdb688 commit ee17be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Embedder/AttachmentEmbedder.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function fromRemoteUrl($url)
$pathInfo = pathinfo($url);

$queryStr = parse_url($url, PHP_URL_QUERY) ?: '';
parse_str($queryStr, $queryParams);
parse_str($queryStr ?? '', $queryParams);
$basename = $queryParams['basename'] ?? $pathInfo['basename'];

if (config('mail-auto-embed.curl.cache', false)) {
Expand Down

0 comments on commit ee17be8

Please sign in to comment.