Skip to content

Newsletter confirmation e-mail activation not working. #7

@grafxflow

Description

@grafxflow

I had an issue with the confirmation e-mail activation url not working.

h**p://www.website.com/newsletter/?lang=en&ac=activate&em1=test&em2=email.net&uk=randomcode

I have managed to sort it by changing the code in all-easymail-subscr-page.php...

// Email
$em1 = ( isset($_REQUEST['em1']) ) ? $_REQUEST['em1'] : '';
$em2 = ( isset($_REQUEST['em2']) ) ? $_REQUEST['em2'] : '';
$concat_email = $em1 . "@" . $em2; 
$email  = ( is_email($concat_email) ) ? $concat_email : false;

$unikey = ( isset($_REQUEST['uk']) ) ? preg_replace( '/[^a-zA-Z0-9]/i', '', $_REQUEST['uk'])  : false;
$action = ( isset($_REQUEST['ac']) && in_array( $_REQUEST['ac'], $allowed_actions) ) ? $_REQUEST['ac'] : false;

to

$parsed = parse_url(parse_url($_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI], PHP_URL_QUERY));
parse_str($parsed['path'], $get_array);

// Email
$em1 = ( isset($get_array['em1']) ) ? $get_array['em1'] : '';
$em2 = ( isset($get_array['em2']) ) ? $get_array['em2'] : '';
$concat_email = $em1 . "@" . $em2; 
$email  = ( is_email($concat_email) ) ? $concat_email : false;
$unikey = ( isset($get_array['uk']) ) ? preg_replace( '/[^a-zA-Z0-9]/i', '', $get_array['uk'])  : false;
$action = ( isset($get_array['ac']) && in_array( $get_array['ac'], $allowed_actions) ) ? $get_array['ac'] : false;

Is anybody else having this issue? or has another fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions