Fix: Check on correct security key
This commit is contained in:
parent
f028cce39d
commit
0e073038ad
@ -43,7 +43,11 @@ $securitykey=GETPOST('securitykey');
|
|||||||
|
|
||||||
dol_syslog("public/emailing/mailing-read.php : tag=".$tag." securitykey=".$securitykey, LOG_DEBUG);
|
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))
|
if (! empty($tag))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,10 +48,14 @@ $securitykey=GETPOST('securitykey');
|
|||||||
|
|
||||||
dol_syslog("public/emailing/mailing-read.php : tag=".$tag." securitykey=".$securitykey, LOG_DEBUG);
|
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
|
//Udate status of mail in Destinaries maling list
|
||||||
$statut='3';
|
$statut='3';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user