mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
fix possible problem on merge_print with addressbook email-templates
This commit is contained in:
parent
77c94dd070
commit
c7bf681e47
@ -175,10 +175,17 @@ class felamimail_bo
|
||||
{
|
||||
if ($_profileID == 0)
|
||||
{
|
||||
$profileID = emailadmin_bo::getUserDefaultProfileID();
|
||||
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