feat/send-mail-to-member #81
@ -14,11 +14,12 @@ $domainFromMyEmail = (
|
|||||||
) ? ''
|
) ? ''
|
||||||
: $myEmailSplitted[1];
|
: $myEmailSplitted[1];
|
||||||
|
|
||||||
$wantedContact = filter_input(INPUT_POST, 'contactTo', FILTER_VALIDATE_EMAIL);
|
$wantedContact = filter_input(INPUT_POST, 'contactTo', FILTER_SANITIZE_SPECIAL_CHARS);
|
||||||
$wantedContact = (
|
$wantedContact = (
|
||||||
empty($wantedContact)
|
empty($wantedContact)
|
||||||
|
|| strpos($wantedContact, '@') !== false
|
||||||
|
|| strpos($wantedContact, '&') !== false
|
||||||
|| empty($domainFromMyEmail)
|
|| empty($domainFromMyEmail)
|
||||||
|| substr($wantedContact, -strlen($domainFromMyEmail)) != $domainFromMyEmail
|
|
||||||
) ? $myEmail : "$wantedContact@$domainFromMyEmail" ;
|
) ? $myEmail : "$wantedContact@$domainFromMyEmail" ;
|
||||||
|
|
||||||
if(empty($_POST['namezzz']) || empty($_POST['emailzzz']) || empty($_POST['message'])) {
|
if(empty($_POST['namezzz']) || empty($_POST['emailzzz']) || empty($_POST['message'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user