From: Brion Vibber Date: Thu, 15 Feb 2007 23:40:05 +0000 (+0000) Subject: * (bug 8992) Fix a remaining raw use of REQUEST_URI in history X-Git-Tag: 1.31.0-rc.0~54034 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=738b967b7ca1c3c4687736c43df8c796e61af96b;p=lhc%2Fweb%2Fwiklou.git * (bug 8992) Fix a remaining raw use of REQUEST_URI in history --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4a06b02d96..49e50e2782 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -186,6 +186,8 @@ lighter making things easier to read. for better localisations. * (bug 8944) The deprecated is_a() function is used in StubObjects.php * (bug 8978) Georgian i18n update +* (bug 8992) Fix a remaining raw use of REQUEST_URI in history + == Languages updated == diff --git a/includes/Wiki.php b/includes/Wiki.php index 85963f5b82..9437ce40f9 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -422,7 +422,8 @@ class MediaWiki { } break; case 'history': - if( $_SERVER['REQUEST_URI'] == $title->getInternalURL( 'action=history' ) ) { + global $wgRequest; + if( $wgRequest->getFullRequestURL() == $title->getInternalURL( 'action=history' ) ) { $output->setSquidMaxage( $this->getVal( 'SquidMaxage' ) ); } $history = new PageHistory( $article );