Make WordPress Core


Ignore:
Timestamp:
02/01/2009 09:45:24 AM (16 years ago)
Author:
azaozz
Message:

Detect when the server compresses output, see #8628

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-styles.php

    r10466 r10476  
    8989require(ABSPATH . '/wp-includes/version.php');
    9090
    91 // Discard any buffers
    92 while ( @ob_end_clean() );
    93 
    94 $load = preg_replace( '/[^a-z0-9,_-]*/i', '', $_GET['load'] );
     91$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] );
    9592$load = explode(',', $load);
    9693
     
    127124header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
    128125header("Cache-Control: public, max-age=$expires_offset");
    129    
     126
    130127if ( $compress && ! ini_get('zlib.output_compression') && 'ob_gzhandler' != ini_get('output_handler') ) {
    131128    header('Vary: Accept-Encoding'); // Handle proxies
Note: See TracChangeset for help on using the changeset viewer.