W.I.P. SMIME:

- Fix warning of invalid arguments
- Fix sometimes signed content not returning correct mime part
This commit is contained in:
Hadi Nategh 2017-07-13 15:37:02 +02:00
parent ef8d014719
commit cb784c25af
2 changed files with 6 additions and 4 deletions

View File

@ -484,10 +484,12 @@ class Mail
{
$this->sessionData = array();
self::$activeFolderCache = Cache::getCache(Cache::INSTANCE,'email','activeMailbox'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),60*60*10);
foreach (self::$activeFolderCache[$this->profileID] as $key => $value)
if (is_array(self::$activeFolderCache[$this->profileID]))
{
$this->sessionData[$key] = $value;
foreach (self::$activeFolderCache[$this->profileID] as $key => $value)
{
$this->sessionData[$key] = $value;
}
}
}

View File

@ -177,7 +177,7 @@ class Smime extends Horde_Crypt_Smime
*/
public function extractSignedContents($data)
{
return Horde_Mime_Part::parseMessage(parent::extractSignedContents($data));
return Horde_Mime_Part::parseMessage(parent::extractSignedContents($data), array('forcemime' => true));
}
}