After press “Send” button, the “loader.gif” shows forever and the widget can’t be used again until I reload the page.
Any help will be appreciated!
]]>There is a bug with the current regex in preg_match_all
An email address of kind
[email protected] will be cut to [email protected]
I solved by changing:
preg_match_all ('/([a-zA-Z0-9])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/i', $_POST ['email'], $emails);
into:
$pattern='/([\s]*)([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*([ ]+|)@([ ]+|)([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,}))([\s]*)/i';
preg_match_all ($pattern , $_POST ['email'], $emails);
]]>
Hi,
Since my comment is blocked after writing a comment at https://dev.fiff.se/wordpress-plugins/wpinviteswidget/, I am now writing here.
I do not know from when, but recently I have found that after press “Send” button, the “ubuntu.loader.gif” shows forever and the widget won’t be used again until I reload the page.
I am not sure but is this the proper action of the widget?
]]>