MyBB Community Forums

Full Version: [F] Syndication.php MySQL Error (Limit Option) [R] [C-StefanT]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Some of my friends was founded this bug (Low Level) on syndication.php.

its for limit option. if lower than -1 it will be error.

i edited this file and here i attached the patch for this bug.

Simple bug : http://community.mybboard.net/syndication.php?limit=-1
Thanks for reporting this, iNJECTOR. Although I think I'll do this:

// Find out the thread limit.
$thread_limit = intval($mybb->input['limit']);
if($thread_limit > 50)
{
	$thread_limit = 50;
}
else if(!$thread_limit)
{
	$thread_limit = 20;
}

To:

// Find out the thread limit.
$thread_limit = intval($mybb->input['limit']);
if($thread_limit > 50)
{
	$thread_limit = 50;
}
else if(!$thread_limit || $thread_limit < 0)
{
	$thread_limit = 20;
}
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group