// Topic Links 2.2 Archive Fix - Improved parsing $path = getenv('PATH_INFO'); if ($path && preg_match('#/t-([0-9]+)(\.html)?#i', $path, $matches)) $threadid = intval($matches[1]); else $threadid = intval(substr($QUERY_STRING, 2));
Once the code is patched, you must force the system to refresh the cached links that were generated while the bug was active. Access your database management tool (such as phpMyAdmin).