Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Jeff Lewis on February 06, 2004, 09:29:27 AM

Title: Bug in News.php
Post by: Jeff Lewis on February 06, 2004, 09:29:27 AM
Around line 35 is this code:

if (!empty($modSettings['enableCompressedOutput']))
{
ob_end_clean();
                ob_end_clean();
ob_start('ob_sessrewrite');
$modSettings['enableCompressedOutput'] = '0';
}


There are two ob_end_clean(); statements and one needs to be removed. With the two there it causes a blank page.
Title: Re: Bug in News.php
Post by: Grudge on February 06, 2004, 10:15:17 AM
yep. I'll fix it if I get home before anyone else comes online :P
Title: Re: Bug in News.php
Post by: [Unknown] on February 06, 2004, 02:24:57 PM
Actually, this is not the case.  The first one counters the session rewriting, and the second stops the gzipping.  It then starts the session rewriting - as you can see, this is all to get rid of the gzipping.

Regardless, it doesn't matter - this is no longer in News.php because it's in SSI.php.  And SSI.php doesn't use the gzipping system index.php does, so this code was removed.

-[Unknown]
Title: Re: Bug in News.php
Post by: Jeff Lewis on February 06, 2004, 09:44:41 PM
Well regardless, it caused a bug. Doesn't matter though now that it's out of there I suppose.