? .buildpath ? .cvsignore ? .project ? .settings ? image_captcha/.DS_Store ? image_captcha/fonts/.DS_Store ? image_captcha/fonts/.gitignore ? image_captcha/fonts/1456Gutenberg.TTF ? image_captcha/fonts/Army.ttf ? image_captcha/fonts/BABYK___.TTF ? image_captcha/fonts/actionj.ttf ? image_captcha/fonts/dropacha.ttf ? image_captcha/fonts/skinck.ttf ? image_captcha/fonts/subeve.ttf ? image_captcha/fonts/tiza.ttf ? image_captcha/fonts/Tesox/.DS_Store ? translations/.DS_Store Index: captcha.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/captcha/captcha.inc,v retrieving revision 1.11.2.6 diff -u -b -u -p -r1.11.2.6 captcha.inc --- captcha.inc 1 Dec 2010 00:14:57 -0000 1.11.2.6 +++ captcha.inc 12 Dec 2010 01:04:04 -0000 @@ -94,7 +94,9 @@ function captcha_get_form_id_setting($fo */ function _captcha_generate_captcha_session($form_id=NULL, $status=CAPTCHA_STATUS_UNSOLVED) { global $user; - db_query("INSERT into {captcha_sessions} (uid, sid, ip_address, timestamp, form_id, solution, status, attempts) VALUES (%d, '%s', '%s', %d, '%s', '%s', %d, %d)", $user->uid, session_id(), ip_address(), time(), $form_id, 'undefined', $status, 0); + // Initialize solution with random data. + $solution = md5(mt_rand()); + db_query("INSERT into {captcha_sessions} (uid, sid, ip_address, timestamp, form_id, solution, status, attempts) VALUES (%d, '%s', '%s', %d, '%s', '%s', %d, %d)", $user->uid, session_id(), ip_address(), time(), $form_id, $solution, $status, 0); $captcha_sid = db_last_insert_id('captcha_sessions', 'csid'); return $captcha_sid; }