Fixed inappropriate conversion of strpos() result to boolean, causing the first cooki...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 23 Jul 2010 05:11:18 +0000 (05:11 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 23 Jul 2010 05:11:18 +0000 (05:11 +0000)
includes/OutputPage.php

index d5a5402..7654025 100644 (file)
@@ -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;
                        }