mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Google Document viewer and Managesieve Fixes
Make some changes in order to make work Google document viewer, and ManageSieve integration (tested only with PHP 7.4).
This commit is contained in:
parent
c519184f3e
commit
c2fc21afed
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ class ManageSieveClient extends \MailSo\Net\NetClient
|
||||||
*/
|
*/
|
||||||
public function Connect($sServerName, $iPort,
|
public function Connect($sServerName, $iPort,
|
||||||
$iSecurityType = \MailSo\Net\Enumerations\ConnectionSecurityType::AUTO_DETECT,
|
$iSecurityType = \MailSo\Net\Enumerations\ConnectionSecurityType::AUTO_DETECT,
|
||||||
$bVerifySsl = false, $bAllowSelfSigned = true)
|
$bVerifySsl = false, $bAllowSelfSigned = true, $sClientCert = '')
|
||||||
{
|
{
|
||||||
$this->iRequestTime = \microtime(true);
|
$this->iRequestTime = \microtime(true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -506,7 +506,7 @@ class ServiceActions
|
||||||
if (\method_exists($this->oActions, $sMethodName))
|
if (\method_exists($this->oActions, $sMethodName))
|
||||||
{
|
{
|
||||||
@\header('X-Raw-Action: '.$sMethodName, true);
|
@\header('X-Raw-Action: '.$sMethodName, true);
|
||||||
@\header('Content-Security-Policy: script-src \'none\'; child-src \'none\'', true);
|
@\header('Content-Security-Policy: script-src \'none\'; child-src \'none\' docs.google.com apis.google.com', true);
|
||||||
|
|
||||||
$sRawError = '';
|
$sRawError = '';
|
||||||
$this->oActions->SetActionParams(array(
|
$this->oActions->SetActionParams(array(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue