mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
fix possible problem on merge_print with addressbook email-templates
This commit is contained in:
parent
77c94dd070
commit
c7bf681e47
@ -174,11 +174,18 @@ class felamimail_bo
|
||||
public static function getInstance($_restoreSession=true, $_profileID=0, $_validate=true)
|
||||
{
|
||||
if ($_profileID == 0)
|
||||
{
|
||||
if (isset($GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID']))
|
||||
{
|
||||
$profileID = (int)$GLOBALS['egw_info']['user']['preferences']['felamimail']['ActiveProfileID'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$profileID = emailadmin_bo::getUserDefaultProfileID();
|
||||
}
|
||||
if ($profileID!=$_profileID) $_restoreSession==false;
|
||||
$_profileID=$profileID;
|
||||
if (self::$debug) error_log(__METHOD__.__LINE__.' called with profileID==0 using '.$profileID.' instead->'.function_backtrace());
|
||||
if (self::$debug); error_log(__METHOD__.__LINE__.' called with profileID==0 using '.$profileID.' instead->'.function_backtrace());
|
||||
}
|
||||
if ($_profileID != 0 && $_validate)
|
||||
{
|
||||
|
@ -345,6 +345,7 @@
|
||||
$sessionData['to'] = base64_decode($_REQUEST['send_to']);
|
||||
// first check if there is a questionmark or ampersand
|
||||
if (strpos($sessionData['to'],'?')!== false) list($sessionData['to'],$rest) = explode('?',$sessionData['to'],2);
|
||||
$sessionData['to'] = html_entity_decode($sessionData['to']);
|
||||
if (($at_pos = strpos($sessionData['to'],'@')) !== false)
|
||||
{
|
||||
if (($amp_pos = strpos(substr($sessionData['to'],$at_pos),'&')) !== false)
|
||||
|
Loading…
Reference in New Issue
Block a user