Last modified: 2010-05-15 15:50:40 UTC
As sometimes it is not set: [28-Oct-2007 05:15:42] PHP Notice: Undefined index: HTTP_ACCEPT_ENCODING in /usr/share/mediawiki1.10/includes/OutputHandler.php on line 26 Simple fix 8<----------------------------------------------------------- function wfGzipHandler( $s ) { if ( function_exists( 'gzencode' ) && !headers_sent() ) { $tokens = preg_split( '/[,; ]/', $_SERVER['HTTP_ACCEPT_ENCODING'] ); if ( in_array( 'gzip', $tokens ) ) { ----------------------------------------------------------->8 SHOULD BE: 8<----------------------------------------------------------- function wfGzipHandler( $s ) { if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && function_exists( 'gzencode' ) && !headers_sent() ) { $tokens = preg_split( '/[,; ]/', $_SERVER['HTTP_ACCEPT_ENCODING'] ); if ( in_array( 'gzip', $tokens ) ) { ----------------------------------------------------------->8 Greets, Jeroen
r27021