mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Preventing manipulation with $_SERVER['HTTP_HOST']
This commit is contained in:
parent
a5712542d7
commit
c3c4de43d6
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ if ((!empty($_POST['user'])) && (empty($_POST['code']))) {
|
||||||
} else {
|
} else {
|
||||||
$mailtext = __('GREETINGS');
|
$mailtext = __('GREETINGS');
|
||||||
}
|
}
|
||||||
$mailtext .= __('PASSWORD_RESET_REQUEST',$_SERVER['HTTP_HOST'],$user,$rkey,$_SERVER['HTTP_HOST'],$user,$rkey);
|
$mailtext .= __('PASSWORD_RESET_REQUEST',$hostname,$user,$rkey,$hostname,$user,$rkey);
|
||||||
if (!empty($rkey)) send_email($to, $subject, $mailtext, $from);
|
if (!empty($rkey)) send_email($to, $subject, $mailtext, $from);
|
||||||
unset($output);
|
unset($output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue