From: Brion Vibber Date: Sat, 9 Oct 2004 21:55:28 +0000 (+0000) Subject: Fix for last checkin on Squid and for the generated data X-Git-Tag: 1.5.0alpha1~1618 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=e16c22569481d162ba84c83b48b78b521eb023b0;p=lhc%2Fweb%2Fwiklou.git Fix for last checkin on Squid and for the generated data --- 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();