Fix: Check on correct security key
This commit is contained in:
parent
f028cce39d
commit
0e073038ad
2 changed files with 11 additions and 3 deletions
|
|
@ -43,7 +43,11 @@ $securitykey=GETPOST('securitykey');
|
|||
|
||||
dol_syslog("public/emailing/mailing-read.php : tag=".$tag." securitykey=".$securitykey, LOG_DEBUG);
|
||||
|
||||
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE) accessforbidden('Bad security key value.');
|
||||
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY)
|
||||
{
|
||||
print 'Bad security key value.';
|
||||
exit;
|
||||
}
|
||||
|
||||
if (! empty($tag))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -48,10 +48,14 @@ $securitykey=GETPOST('securitykey');
|
|||
|
||||
dol_syslog("public/emailing/mailing-read.php : tag=".$tag." securitykey=".$securitykey, LOG_DEBUG);
|
||||
|
||||
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE) accessforbidden('Bad security key value.');
|
||||
if ($securitykey != $conf->global->MAILING_EMAIL_UNSUBSCRIBE_KEY)
|
||||
{
|
||||
print 'Bad security key value.';
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
if (($tag!='') && ($unsuscrib=='1'))
|
||||
if (! empty($tag) && ($unsuscrib=='1'))
|
||||
{
|
||||
//Udate status of mail in Destinaries maling list
|
||||
$statut='3';
|
||||
|
|
|
|||
Loading…
Reference in a new issue