Mailstream: delete cookiejar after fetching image
This commit is contained in:
parent
a888947b67
commit
0820765c4e
1 changed files with 1 additions and 0 deletions
|
|
@ -289,6 +289,7 @@ function mailstream_do_images(array &$item, array &$attachments)
|
|||
$cookiejar = tempnam(System::getTempPath(), 'cookiejar-mailstream-');
|
||||
try {
|
||||
$curlResult = DI::httpClient()->get($url, HttpClientAccept::DEFAULT, [HttpClientOptions::COOKIEJAR => $cookiejar]);
|
||||
unlink($cookiejar);
|
||||
if (!$curlResult->isSuccess()) {
|
||||
DI::logger()->debug('mailstream: fetch image url failed', [
|
||||
'url' => $url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue