2008-09-04, 08:15 AM
Is this code from the development stages or is it still used?
so browsing to http://community.mybboard.net/captcha.ph...ehash=test
always returns an image with MyBB text.
I'm not sure if this is used as a valid test somewhere or is it just left over from the development stages?
I have checked over though and this dosn't compromise the job the captcha does against spam bots.
Update:
PS in the code following the above
the $query should be checked to see if it has returned rows or not and if it hasn't then return false.
if($mybb->input['imagehash'] == "test")
{
$imagestring = "MyBB";
}
so browsing to http://community.mybboard.net/captcha.ph...ehash=test
always returns an image with MyBB text.
I'm not sure if this is used as a valid test somewhere or is it just left over from the development stages?
I have checked over though and this dosn't compromise the job the captcha does against spam bots.
Update:
PS in the code following the above
elseif($mybb->input['imagehash'])
{
$query = $db->simple_select("captcha", "*", "imagehash='".$db->escape_string(strval($mybb->input['imagehash']))."'", array("limit" => 1));
$regimage = $db->fetch_array($query);
$imagestring = $regimage['imagestring'];
}
the $query should be checked to see if it has returned rows or not and if it hasn't then return false.