mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-04-29 03:14:23 +02:00
Support for cleared boot.php
This commit is contained in:
parent
95622a0f0d
commit
6a349e7fd9
15 changed files with 38 additions and 25 deletions
|
@ -17,6 +17,8 @@
|
|||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
use Friendica\Core\System;
|
||||
|
||||
/**
|
||||
* PHPMailer - PHP email creation and transport class.
|
||||
* @package PHPMailer
|
||||
|
@ -2350,11 +2352,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(get_temppath(), 'mail');
|
||||
$file = tempnam(System::getTempPath(), 'mail');
|
||||
if (false === file_put_contents($file, $body)) {
|
||||
throw new phpmailerException($this->lang('signing') . ' Could not write temp file');
|
||||
}
|
||||
$signed = tempnam(get_temppath(), 'signed');
|
||||
$signed = tempnam(System::getTempPath(), 'signed');
|
||||
//Workaround for PHP bug https://bugs.php.net/bug.php?id=69197
|
||||
if (empty($this->sign_extracerts_file)) {
|
||||
$sign = @openssl_pkcs7_sign(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue