Author: tderouin
Description:
This function pulls out oldid from the wgRequest but fails to consider whether
or not the currrent article is actually the article being referenced in the
request, so in the case where article->mTitle is different than $wgTitle, this
always loads the article specified by oldid. This doesn't really affect
wikipedia, but in other sites that have modifications that load articles
internally, any functionality that does a article->getContent() will be broken
if there's an oldid in the URL. I think a simple solution would be just to check
if the current article's title is actually the global title:
global $wgRequest, $wgTitle; $this->mRedirectUrl = false; if (! ($wgTitle->getNamespace() == $this->mTitle->getNamespace() && $wgTitle->getText() == $this->mTitle->getText() ) ) return 0;
Version: 1.7.x
Severity: minor
OS: Mac OS X 10.0
Platform: Macintosh