This commit is contained in:
Alex Grintsvayg 2016-09-22 10:06:24 -04:00
parent d7cc836221
commit 07bbc4a95a

View file

@ -10,6 +10,11 @@ class MailActions extends Actions
}
$nextUrl = Request::getPostParam('returnUrl', '/');
if (!$nextUrl || $nextUrl[0] != '/' || !filter_var($nextUrl, FILTER_VALIDATE_URL))
{
$nextUrl = '/';
}
$email = Request::getPostParam('email');
if (!$email || !filter_var($email, FILTER_VALIDATE_EMAIL))
{