2014-05-19, 07:10 PM
So i have noticed that if you go to /search.php?action=results&sid[0]=9afaea732cb32f06fa34b1888bd237e2&sortby=&order=
on any site then you get an error. You can try this on your own forums or on this forum.
How To patch :
edit search.php and find this line :
$sid = $db->escape_string($mybb->input['sid']);
change this line to :
if(is_array($mybb->input['sid']))
$sid = $db->escape_string(implode($mybb->input['sid']));
else
$sid = $db->escape_string($mybb->input['sid']);
on any site then you get an error. You can try this on your own forums or on this forum.
How To patch :
edit search.php and find this line :
$sid = $db->escape_string($mybb->input['sid']);
change this line to :
if(is_array($mybb->input['sid']))
$sid = $db->escape_string(implode($mybb->input['sid']));
else
$sid = $db->escape_string($mybb->input['sid']);