Invisimail not fully encoding addresses with a "-" in the domain

head-geek - September 17, 2009 - 20:25
Project:Invisimail
Version:6.x-1.2
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Invisimail stops encoding email addresses at the hyphen ("-") if the address domain contains one.

For example, if the email address is somebody@bsd-ri.net, Invisimail stops encoding the address after "bsd" and the mailto: link ends up as mailto:somebody@bsd

Tried changing encoding methods within the Invisimail formatter settings does not help.

#1

oligog - October 27, 2009 - 00:19

try to change line 112 to:
$domain = '(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9\-][a-zA-Z0-9\-]*[a-zA-Z0-9\-])\.?)+';

I added the "\-" (without ") because there may be such a -character in a domain name...
& now it works!

The obfuscated e-mail still breaks the layout (i´ve to put it into the flow).

 
 

Drupal is a registered trademark of Dries Buytaert.