[Comoblog-commit] comoblog add_comment.php,1.6,1.7
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2008-02-19 09:12:47
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv8177 Modified Files: add_comment.php Log Message: Tidy up captcha implementation Index: add_comment.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/add_comment.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- add_comment.php 17 Nov 2006 00:50:45 -0000 1.6 +++ add_comment.php 19 Feb 2008 09:12:41 -0000 1.7 @@ -44,11 +44,12 @@ $errors = array(); if ($_POST['captcha_string'] == '') array_push ($errors, 'Please type the text from the image'); - + else { error_log("CAPTCHATEXT CHECK->" . $_SESSION['CAPTCHATEXT'] ."/" . $_POST['captcha_string']); if ($_POST['captcha_string'] != $_SESSION['CAPTCHATEXT']) array_push ($errors, 'Please type the correct text from the image'); + } if ($form['comment_author'] == '') array_push ($errors, 'Please type your name'); |