mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Only allow Proxy for logged in users
This commit is contained in:
parent
0d5d403fb8
commit
8b5547104d
1 changed files with 4 additions and 1 deletions
|
|
@ -279,7 +279,10 @@ class ServiceActions
|
||||||
public function ServiceProxyExternal() : string
|
public function ServiceProxyExternal() : string
|
||||||
{
|
{
|
||||||
$sData = empty($this->aPaths[1]) ? '' : $this->aPaths[1];
|
$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);
|
$this->oActions->verifyCacheByKey($sData);
|
||||||
$sUrl = \MailSo\Base\Utils::UrlSafeBase64Decode($sData);
|
$sUrl = \MailSo\Base\Utils::UrlSafeBase64Decode($sData);
|
||||||
if (!empty($sUrl)) {
|
if (!empty($sUrl)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue