From e16c22569481d162ba84c83b48b78b521eb023b0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 9 Oct 2004 21:55:28 +0000 Subject: [PATCH] Fix for last checkin on Squid and for the generated data --- includes/RawPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/RawPage.php b/includes/RawPage.php index 562dccc2e9..aa21d8311d 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -52,7 +52,7 @@ class RawPage { function view() { global $wgUser, $wgOut, $wgScript; - if( strncmp( $wgScript . '?', $_SERVER['REQUEST_URI'], strlen( $wgScript ) + 1 ) ) { + if( strcmp( $wgScript, $_SERVER['PHP_SELF'] ) ) { # Internet Explorer will ignore the Content-Type header if it # thinks it sees a file extension it recognizes. Make sure that # all raw requests are done through the script node, which will @@ -63,6 +63,7 @@ class RawPage { '&ctype=' . urlencode( $this->mContentType ) . '&smaxage=' . urlencode( $this->mSmaxage ) . '&maxage=' . urlencode( $this->mMaxage ) . + '&gen=' . urlencode( $this->mGen ) . '&oldid=' . urlencode( $this->mOldId ) ); header( 'Location: ' . $destUrl ); $wgOut->disable(); -- 2.20.1