From a4ce030e411ea3140f86be5de652bc4eb39c5646 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 23 Jul 2010 05:11:18 +0000 Subject: [PATCH] Fixed inappropriate conversion of strpos() result to boolean, causing the first cookie in the header to not be recognised as a cache-varying cookie --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index d5a54021b9..7654025e0e 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1275,7 +1275,7 @@ class OutputPage { $cvCookies = $this->getCacheVaryCookies(); foreach ( $cvCookies as $cookieName ) { # Check for a simple string match, like the way squid does it - if ( strpos( $cookieHeader, $cookieName ) ) { + if ( strpos( $cookieHeader, $cookieName ) !== false ) { wfDebug( __METHOD__ . ": found $cookieName\n" ); return true; } -- 2.20.1