dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c94b8a
)
Fixed inappropriate conversion of strpos() result to boolean, causing the first cooki...
author
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 23 Jul 2010 05:11:18 +0000
(
05:11
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 23 Jul 2010 05:11:18 +0000
(
05:11
+0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
d5a5402
..
7654025
100644
(file)
--- 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;
}