News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Bug in News.php

Started by Jeff Lewis, February 06, 2004, 09:29:27 AM

Previous topic - Next topic

Jeff Lewis

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.
Co-Founder of SMF

Grudge

yep. I'll fix it if I get home before anyone else comes online :P
I'm only a half geek really...

[Unknown]

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]

Jeff Lewis

Well regardless, it caused a bug. Doesn't matter though now that it's out of there I suppose.
Co-Founder of SMF

Advertisement: