mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Prevent parameter errors in sendMessage()/saveMessage() due to too many parameters.
Instead provide an object. sendMessage param 'SentFolder' and saveMessage param 'DraftFolder' now both 'SaveFolder'
This commit is contained in:
parent
6f49e9b80f
commit
7670d2073d
7 changed files with 185 additions and 306 deletions
|
|
@ -5107,7 +5107,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
$sMessageFolder = $this->GetActionParam('MessageFolder', '');
|
||||
$sMessageUid = $this->GetActionParam('MessageUid', '');
|
||||
|
||||
$sDraftFolder = $this->GetActionParam('DraftFolder', '');
|
||||
$sDraftFolder = $this->GetActionParam('SaveFolder', '');
|
||||
if (0 === strlen($sDraftFolder))
|
||||
{
|
||||
throw new Exceptions\ClientException(Notifications::UnknownError);
|
||||
|
|
@ -5333,7 +5333,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
|
||||
$sDraftFolder = $this->GetActionParam('MessageFolder', '');
|
||||
$sDraftUid = $this->GetActionParam('MessageUid', '');
|
||||
$sSentFolder = $this->GetActionParam('SentFolder', '');
|
||||
$sSentFolder = $this->GetActionParam('SaveFolder', '');
|
||||
$aDraftInfo = $this->GetActionParam('DraftInfo', null);
|
||||
$bDsn = '1' === (string) $this->GetActionParam('Dsn', '0');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue