mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/8796] Prevent setting post_time greater than time() in markread
PHPBB3-8796
This commit is contained in:
@@ -1291,7 +1291,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
|||||||
global $db, $user, $config;
|
global $db, $user, $config;
|
||||||
global $request;
|
global $request;
|
||||||
|
|
||||||
$post_time = ($post_time === 0) ? time() : (int) $post_time;
|
$post_time = ($post_time === 0 || $post_time > time()) ? time() : (int) $post_time;
|
||||||
|
|
||||||
if ($mode == 'all')
|
if ($mode == 'all')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user