Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
reff Wrote:Hi all
I found a bug (possibly connected to e-mail verification regexp). Everything's ok if there any .com .net .ru or whatever 2-3 letters TLD is used as a mail domain in plugin's settings. But in case of usage 4 letters TLD (e.g. .info) the 'target' error occurs and message cannot be sent.

edit /plugins/p01-contact/p01-contact.php
change line 846 to:
Code:
$pattern = '`^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$`i';
and visitors should be able to send using 4-letter tld in their email addresses.

andyash: call the phone field with phone , not phone!
Addons: blue business theme, Online Visitors, Notepad
Reply


Messages In This Thread
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47
p01-contact : simply add contact forms in your pages - by yojoe - 2011-06-26, 20:21:02



Users browsing this thread: 2 Guest(s)