Current time: 05-23-2013, 06:44 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Syndication.php MySQL Error (Limit Option) [R] [C-StefanT]
06-13-2009, 11:01 AM (This post was last modified: 06-13-2009 11:02 AM by iNJECTORâ„¢.)
Post: #1
[F] Syndication.php MySQL Error (Limit Option) [R] [C-StefanT]
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


Attached File(s)
.php  syndication.php (Size: 4.02 KB / Downloads: 230)
Find all posts by this user
06-18-2009, 10:43 AM
Post: #2
RE: Syndication.php MySQL Error (Limit Option) [R]
Thanks for reporting this, iNJECTOR. Although I think I'll do this:

PHP Code:
// 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:

PHP Code:
// 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;

Find all posts by this user
06-18-2009, 10:44 AM
Post: #3
[F] Syndication.php MySQL Error (Limit Option) [R]
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
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication