mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03:00
Bugfix: ETag should use account not ImapClient as switching accounts could generate same hash
This commit is contained in:
parent
e2ed87a1ab
commit
402de0d569
3 changed files with 4 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ trait Messages
|
|||
// $oInfo = $this->MailClient()->FolderHash($oParams->sFolderName);
|
||||
$oInfo = $this->ImapClient()->FolderStatusAndSelect($oParams->sFolderName);
|
||||
$aRequestHash = \explode('-', $sHash);
|
||||
$sFolderHash = $oInfo->getETag($this->ImapClient()->Hash());
|
||||
$sFolderHash = $oInfo->getETag($this->getAccountFromToken()->IncLogin());
|
||||
$sHash = $oParams->hash() . '-' . $sFolderHash;
|
||||
if ($aRequestHash[1] == $sFolderHash) {
|
||||
$this->verifyCacheByKey($sHash);
|
||||
|
|
@ -429,7 +429,7 @@ trait Messages
|
|||
}
|
||||
|
||||
if ($oMessage) {
|
||||
$ETag = $oMessage->ETag($this->ImapClient()->Hash());
|
||||
$ETag = $oMessage->ETag($this->getAccountFromToken()->IncLogin());
|
||||
$this->verifyCacheByKey($ETag);
|
||||
$this->Plugins()->RunHook('filter.result-message', array($oMessage));
|
||||
$this->cacheByKey($ETag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue