Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi. I noticed that the output is broken in case the is enclosed around something not being an email-address. In my case: not page content was shown at all.
E-Mail works
but
Some name or other doesn't work! (Space character)
The regex pattern is quite complex. In my opinion to solve this issue, maybe a second preg_match is neccessary.
If the $mail part is changed the general detection of email-addresses would not work anymore. Any ideas?
Christian
Comments
Comment #1
subetha_de CreditAttribution: subetha_de commentedSorry, my post is not readable very well ;)
works:
doesn't work:
I understand the second example doesn't work because of the space character is not allowed in the
$mail part.
Comment #2
Crell CreditAttribution: Crell commentedThis works fine in my testing.
Comment #3
Crell CreditAttribution: Crell commentedNo, wait, I'm wrong. It is skipping the address. Blargh.
Comment #4
Crell CreditAttribution: Crell commentedComment #5
Crell CreditAttribution: Crell commentedThis appears to have been fixed by #816100: Invisimail Filter does not work and causes body to disappear when email domain is longer than 8 characters .