From c2fc21afedb31aecc3fc21265e01c33382dd67aa Mon Sep 17 00:00:00 2001 From: fdisamuel <62856267+fdisamuel@users.noreply.github.com> Date: Tue, 23 Mar 2021 12:14:38 +0100 Subject: [PATCH] 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). --- .../v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php | 2 +- rainloop/v/0.0.0/app/libraries/RainLoop/ServiceActions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php b/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php index f715a312b..702f72f97 100644 --- a/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php +++ b/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php @@ -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); diff --git a/rainloop/v/0.0.0/app/libraries/RainLoop/ServiceActions.php b/rainloop/v/0.0.0/app/libraries/RainLoop/ServiceActions.php index d95935e69..29353a3bd 100644 --- a/rainloop/v/0.0.0/app/libraries/RainLoop/ServiceActions.php +++ b/rainloop/v/0.0.0/app/libraries/RainLoop/ServiceActions.php @@ -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(