Add support for import subscription consent evidence

[MAILPOET-3389]
This commit is contained in:
Jan Lysý
2021-03-04 18:32:56 +01:00
committed by Veljko V
parent fb68f1a7d8
commit be29262319
3 changed files with 36 additions and 15 deletions

View File

@ -87,4 +87,8 @@ class ModelValidator extends \MailPoetVendor\Sudzy\Engine {
}
return (is_null($newsletterBody) || (is_array($newsletterBody) && !empty($newsletterBody['html']) && !empty($newsletterBody['text'])));
}
public function validateIPAddress(string $ip): bool {
return (bool)filter_var($ip, FILTER_VALIDATE_IP);
}
}