Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Rumbaar on December 25, 2007, 05:36:24 AM

Title: [SMF 1.1] [BUG]+[FIX] CAPTCHA error message on Private Message incorrect input.
Post by: Rumbaar on December 25, 2007, 05:36:24 AM
In the current PersonalMessage.php file it makes reference to a missing text string for returning a visual warning to incorrectly inputted CAPTCHA characters.
// Wrong verification code?
if (!$user_info['is_admin'] && !empty($modSettings['pm_posts_verification']) && $user_info['posts'] < $modSettings['pm_posts_verification'] && (empty($_REQUEST['visual_verification_code']) || strtoupper($_REQUEST['visual_verification_code']) !== $_SESSION['visual_verification_code']))
$post_errors[] = 'wrong_verification_code';


Adding the following to the Errors.english.php language file should make the code perform how it was intended and return a visual error indicator when a mistake is made:
$txt['error_wrong_verification_code'] = 'The letters you typed don\'t match the letters that were shown in the picture.';
Title: Re: [BUG]+[FIX] CAPTCHA error message on Private Message incorrect input.
Post by: karlbenson on December 25, 2007, 05:49:02 AM
good work Rumbaar. ;)
Title: Re: [BUG]+[FIX] CAPTCHA error message on Private Message incorrect input.
Post by: SleePy on December 25, 2007, 04:45:36 PM
Bug reported. For team Reference the bug is http://dev.simplemachines.org/mantis/view.php?id=1170
Title: Re: [BUG]+[FIX] CAPTCHA error message on Private Message incorrect input.
Post by: Rumbaar on December 25, 2007, 04:57:22 PM
I noticed the edit there Sleepy, did I miss something or get something wrong?  Just want to make sure the changes I've made on my end are still correct.
Title: Re: [BUG]+[FIX] CAPTCHA error message on Private Message incorrect input.
Post by: SleePy on December 25, 2007, 05:04:27 PM
Hard to say if they are correct. It depends on how the developers fix it. But it does patch it for now ;)
Title: Re: [BUG]+[FIX] CAPTCHA error message on Private Message incorrect input.
Post by: karlbenson on December 25, 2007, 05:08:28 PM
Indeed, theres a million ways to crack a nut.

The Devs just need one.