WordPress.org

Make WordPress Core

Ticket #11316: 12320_deflate_iis_fix.patch

File 12320_deflate_iis_fix.patch, 470 bytes (added by amattie, 4 years ago)

Fix for deflate compression from IIS 7

  • wp-includes/http.php

     
    18471847         * @return string|bool False on failure. 
    18481848         */ 
    18491849        function compatible_gzinflate($gzData) { 
     1850                if ( false !== ($data = gzinflate($gzData)))  
     1851                        return $data; 
    18501852                if ( substr($gzData, 0, 3) == "\x1f\x8b\x08" ) { 
    18511853                        $i = 10; 
    18521854                        $flg = ord( substr($gzData, 3, 1) );