svn: /pear/packages/Bugtracker/trunk/www/ bug.php

From: Date: Fri, 05 Mar 2010 22:31:33 +0000
Subject: svn: /pear/packages/Bugtracker/trunk/www/ bug.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-59003@lists.php.net to get a copy of this message
jani Fri, 05 Mar 2010 22:31:33 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295867 Log: - Fix the captcha logic also for adding comments Changed paths: U pear/packages/Bugtracker/trunk/www/bug.php Modified: pear/packages/Bugtracker/trunk/www/bug.php =================================================================== --- pear/packages/Bugtracker/trunk/www/bug.php 2010-03-05 22:31:01 UTC (rev 295866) +++ pear/packages/Bugtracker/trunk/www/bug.php 2010-03-05 22:31:33 UTC (rev 295867) @@ -156,8 +156,8 @@ // 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 (isset($_SESSION['answer']) && strlen(trim($_SESSION['answer'])) > 0) { - if ($_POST['captcha'] != $_SESSION['answer']) { + if (!$logged_in) { + if (empty($_SESSION['answer']) || $_POST['captcha'] != $_SESSION['answer']) { $errors[] = 'Incorrect Captcha'; } }

« previous php.pear.cvs (#59003) next »