-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels