X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mailstream%2Fphpmailer%2Fclass.phpmailer.php;h=46ff4360c259b75e2935b37ef9866c6ddd78e639;hb=9497a598bbff935f60a804bcefdfea517891d7d7;hp=c2611e8603eaab67c155c05355325292b1289cc3;hpb=8f7503d573ad90e8150b1f288b5e9c09f9479c2a;p=friendica-addons.git diff --git a/mailstream/phpmailer/class.phpmailer.php b/mailstream/phpmailer/class.phpmailer.php index c2611e86..46ff4360 100644 --- a/mailstream/phpmailer/class.phpmailer.php +++ b/mailstream/phpmailer/class.phpmailer.php @@ -2350,11 +2350,11 @@ class PHPMailer throw new phpmailerException($this->lang('extension_missing') . 'openssl'); } // @TODO would be nice to use php://temp streams here, but need to wrap for PHP < 5.1 - $file = tempnam(sys_get_temp_dir(), 'mail'); + $file = tempnam(get_temppath(), 'mail'); if (false === file_put_contents($file, $body)) { throw new phpmailerException($this->lang('signing') . ' Could not write temp file'); } - $signed = tempnam(sys_get_temp_dir(), 'signed'); + $signed = tempnam(get_temppath(), 'signed'); //Workaround for PHP bug https://bugs.php.net/bug.php?id=69197 if (empty($this->sign_extracerts_file)) { $sign = @openssl_pkcs7_sign(