mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-09-04 21:05:15 +00:00
xss
This commit is contained in:
parent
d7cc836221
commit
07bbc4a95a
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue