For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Please could this be changed from:
return "<li><Access denied></li>\n";
As it stands atm, users without access rights to the articles in question are shown the article title and a link to it - but with no indication that they can't access it. This just causes problems with users complaining that they can't get to articles shown.
A more sensible patch would be to simply show a message in place of the link - which wouldn't mess up paging.
(This would also eliminate part of the issue reported at Security issues with authorization extensions)
I've created Extension:RemoveProtectedContent which eliminates the above security problem, without affecting pagination.
Note that for per-namescae denying Lockdown will not show the results on forbidden namespaces.