[6.2]
While trying to setup new indicators for anonymous users I noticed that this line is possibly not doing what it should:
preg_replace ("-$singleforum=(\d*?)-", '', ${$config['cookieprefix']."w3t_visit"})
It appears to be replacing, for example:
-myforum=1234567-
with this:
-1234567-
and then adding the new entry to the end of the cookie leaving some garbage behind each time a user uses 'mark read' for a specific forum.
When I replaced the pattern with this instead it appears to work as expected:
"/-$singleforum=(.*?)-/"
(this pattern is the pattern found in existing code to check if a forum in in w3t_visit cookie string)