1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

[ticket/8796] Prevent setting post_time greater than time() in markread

PHPBB3-8796
This commit is contained in:
Nathan Guse 2012-09-30 10:29:43 -05:00
parent fccbf09e4a
commit 51862f151d

View File

@ -1291,7 +1291,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
global $db, $user, $config;
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')
{