Commit: a8c0a63e1fec559054e65bf0609d340367a55555 Author: Daniel Convissor <[email protected]> Sat, 4 Jan 2014 20:25:56 -0500 Parents: c55b95109388eacde2f93ae6f14b91b74eace089 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=a8c0a63e1fec559054e65bf0609d340367a55555 Log: Tell user to enable cookies if session captcha answer is missing. (Bug #66393) Bugs: https://bugs.php.net/66393 Changed paths: M www/bug.php Diff: diff --git a/www/bug.php b/www/bug.php index 173c80e..a90d661 100644 --- a/www/bug.php +++ b/www/bug.php @@ -198,7 +198,9 @@ if (isset($_POST['ncomment']) && !isset($_POST['preview']) && $edit == 3) { // Check if session answer is set, then compare it with the post captcha value. // If it's not the same, then it's an incorrect password. if (!$logged_in) { - if (!isset($_SESSION['answer']) || $_POST['captcha'] != $_SESSION['answer']) { + if (!isset($_SESSION['answer'])) { + $errors[] = 'Please enable cookies so the Captcha system can work'; + } elseif ($_POST['captcha'] != $_SESSION['answer']) { $errors[] = 'Incorrect Captcha'; } } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
