Topic: LuxCal 4.6.0 - Problem with email addresses ending on .xxx.yy

For LuxCal 4.6.0 when optimizing the validation rules for email addresses, an error was introduced in the validation pattern (regex). Because of this error email addresses ending on .xxx.yy, like tom.dowd@mymail.com.uk, will not pass the validation.
This problem will be fixed in the next LuxCal release.
You can solve this problem yourself by editing the file common/toolbox.php and replacing lines 12 - 16 by the following lines . . .

$rxEmail = '~(?:^|\s|:)([^@\s]{2,40})@((?:[^@\s\.]{2,30}\.)+\w{2,6})(?:\.\s|\s|<|$)~im'; //jd@skyweb.com

$rxEmailX = '~^(?:[^<@]*<)?([^@\s]{2,40})@((?:[^@\s\.]{2,30}\.)+\w{2,6})>?$~i'; //John D. <jd@skyweb.com>

$rxEML = '~(^|\s)([^@\s]{2,40})@((?:[^@\s\.]{2,30}\.)*[^@\s\.]{2,30}).(\w{2,6})(?:\s*\[([^<>\[]+?)\])?(\.|\s|<|$)~im'; //jd@skyweb.com [title]

Use cut and paste wink

Roel

Re: LuxCal 4.6.0 - Problem with email addresses ending on .xxx.yy

Hi. Your solution fixed the email address ending - but there is a related problem.  When I write an email address in an event it gets changed - for example "secretary@dtrg.org.uk" is replaced by: "secretarySend email".  And in the edit event box an error message: "Notice: Undefined offset: 4 in /home/dtrg/public_html/luxc/common/toolbox.php on line 268"
Is there away to disable the checking and allow writing html code <a href= "mailto:"></a>  ?  Thanks in advance.

Re: LuxCal 4.6.0 - Problem with email addresses ending on .xxx.yy

Hi there,

This problem is solved in LuxCal V4.6.1, which we released 2018-04-24 (yesterday). A couple of other issues were solved as well in this new version. So best would be to upgrade.
Or otherwise edit the file common/toolbox.php and change line 16 to . . .

$rxEML = '~(^|\s)([^@\s]{2,40})@((?:[^@\s\.]{2,30}\.)*[^@\s\.]{2,30}).(\w{2,6})(?:\s*\[([^<>\[]+?)\])?(\.|\s|<|$)~im'; //jd@skyweb.com [title]

Disabling the checking would require a program change, which is not recommended.

Roel