Bug: JS function knews_checkmail returns false for some valid email addresses
-
This is a bug report. I’m submitting it here as I can’t find a bug tracker for K-News.
The JS function knews_checkmail is used to check the validity of an email address before manually sending out a test newsletter to a single address. The regex used to validate the mail address is
/^[A-Za-z][A-Za-z0-9_\.-]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/
Now I’m not a regex guru but it seems that any email address with the host part containing a
-
(hyphen) is marked as invalid.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug: JS function knews_checkmail returns false for some valid email addresses’ is closed to new replies.