The link that is generated to unsubscribe has the form

www.example.com/views_mail/user/remove/{some stuff}t{email address}

For instance,

www.example.com/views_mail/user/remove/cea251aab5123tuser%40somedomain.com

In function views_mail_remove the two parts are separated using

list($nid, $mail) = explode('t', drupal_substr($op2, 10));

However, this fails if the email address happens to contain a "t" (ultimately the MD5 hash check will fail and a "page not found" will be reported). This line should be

list($nid, $mail) = explode('t', drupal_substr($op2, 10), 2);

Trivial patch attached.

Thanks for the module by the way, it's exactly what I was looking for!

Comments

mrfelton’s picture

you forgot to attache the patch!

mrfelton’s picture

Status: Active » Reviewed & tested by the community

I can confirm the fix. Thanks