Skip to content

Commit

Permalink
Only allow Proxy for logged in users
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 11, 2024
1 parent 0d5d403 commit 8b55471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ public function ServiceUploadBackground() : string
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)) {
Expand Down

0 comments on commit 8b55471

Please sign in to comment.