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:
fdisamuel 2021-03-23 12:14:38 +01:00
parent c519184f3e
commit c2fc21afed
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ class ManageSieveClient extends \MailSo\Net\NetClient
*/
public function Connect($sServerName, $iPort,
$iSecurityType = \MailSo\Net\Enumerations\ConnectionSecurityType::AUTO_DETECT,
$bVerifySsl = false, $bAllowSelfSigned = true)
$bVerifySsl = false, $bAllowSelfSigned = true, $sClientCert = '')
{
$this->iRequestTime = \microtime(true);

View file

@ -506,7 +506,7 @@ class ServiceActions
if (\method_exists($this->oActions, $sMethodName))
{
@\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 = '';
$this->oActions->SetActionParams(array(