I suggest to check if $_SESSION['captcha'] is not empty. Because current
example allows surpassing captcha when both session and request variables
are empty.
So fixed example should be:
if (!$_SESSION['captcha'] || (strtolower(trim($_REQUEST['captcha'])) !=
$_SESSION['captcha'])) {
return "Invalid captcha";
}
Original issue reported on code.google.com by laurynas...@gmail.com on 29 Oct 2009 at 11:09
Original issue reported on code.google.com by
laurynas...@gmail.com
on 29 Oct 2009 at 11:09