Index: trunk/phase3/includes/Setup.php |
— | — | @@ -388,6 +388,12 @@ |
389 | 389 | $wgCanonicalServer = wfExpandUrl( $wgServer, PROTO_HTTP ); |
390 | 390 | } |
391 | 391 | |
| 392 | +if ( $wgUseFileCache && $wgUseGzip ) { |
| 393 | + // Bypass any previous output handler to avoid double |
| 394 | + // compression (bug 34254) |
| 395 | + wfResetOutputBuffers(); |
| 396 | +} |
| 397 | + |
392 | 398 | wfProfileIn( $fname . '-misc1' ); |
393 | 399 | |
394 | 400 | # Raise the memory limit if it's too low |
Index: trunk/phase3/RELEASE-NOTES-1.20 |
— | — | @@ -18,6 +18,8 @@ |
19 | 19 | * (bug 30245) Use the correct way to construct a log page title. |
20 | 20 | * (bug 34237) Regenerate an empty user_token and save to the database |
21 | 21 | when we try to set the user's cookies for login. |
| 22 | +* (bug 34254) Using a gzipped file cache ($wgUseGzip and $wgUseFileCache) |
| 23 | + compressed the output twice resulting in garbage output (since 1.18) |
22 | 24 | |
23 | 25 | === API changes in 1.20 === |
24 | 26 | |