[RSS Feed/News] XF\Reaction\AbstractHandler::updateContentReactions no check for deleted reactions

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Every other location which touches container('reactions') guards against the reaction id being tested against actually exists in the cache. This appears to be the only place which doesn't.

This can result in a race condition between a post reaction cache being rebuilt and the reactions container cache being rebuilt.
PHP:

Code:
if ($scoreField)
{
   $reactionsCache = \XF::app()->container('reactions');
   $score = 0;
   foreach ($counts AS $reactionId => $count)
   {
      $reaction =...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom