mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/11896] Use $form_time and fix out of bounds $form_time
PHPBB3-11896
This commit is contained in:
parent
7f10312bf2
commit
0d3396487e
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,8 @@ class ucp_notifications
|
|||
add_form_key('ucp_notification');
|
||||
|
||||
$start = $request->variable('start', 0);
|
||||
$form_time = min($request->variable('form_time', 0), time());
|
||||
$form_time = $request->variable('form_time', 0);
|
||||
$form_time = ($form_time <= 0 || $form_time > time()) ? time() : $form_time;
|
||||
|
||||
$phpbb_notifications = $phpbb_container->get('notification_manager');
|
||||
|
||||
|
@ -103,7 +104,7 @@ class ucp_notifications
|
|||
{
|
||||
confirm_box(false, 'NOTIFICATIONS_MARK_ALL_READ', build_hidden_fields(array(
|
||||
'mark' => 'all',
|
||||
'form_time' => time(),
|
||||
'form_time' => $form_time,
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue