From 8b5547104d949a6f1d9a214a5b2fef301570de05 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 12 Nov 2024 00:35:51 +0100 Subject: [PATCH] Only allow Proxy for logged in users --- snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php index 9b0ee7e23..e46b95375 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php @@ -279,7 +279,10 @@ class ServiceActions public function ServiceProxyExternal() : string { $sData = empty($this->aPaths[1]) ? '' : $this->aPaths[1]; - if ($sData && $this->Config()->Get('labs', 'use_local_proxy_for_external_images', false)) { + if ($sData + && $this->Config()->Get('labs', 'use_local_proxy_for_external_images', false) + && $this->oActions->getAccountFromToken() + ) { $this->oActions->verifyCacheByKey($sData); $sUrl = \MailSo\Base\Utils::UrlSafeBase64Decode($sData); if (!empty($sUrl)) {