Heine

  • home
  • drupal
  • drupal core commits
  • about
Home › Forums › MyCaptcha › Feature requests

Case sensitive optional?

Anonymous — Tue, 03/07/2007 - 09:37

Hi, thanks for creating this module. I notice that the image captcha answer is case sensitive. I would like to make mine non case sensitive, so that its a little more lenient for visitors who mightn't realize why their comment is refused, when they've entered the correct numbers/letters, causing them to leave, frustrated with my site.

Is this possible?

No votes yet
‹ Will there be a MyCaptcha for Drupal 6.x
  • Feature requests

For now

Heine — Tue, 03/07/2007 - 20:06

If you want a case insensitive captcha you need to replace line 402 of mycap.module:

if ($form_values['captcha_answer'] != '' && $captcha['answer'] != $form_values['captcha_answer']) {

should become:
if ($form_values['captcha_answer'] != '' && strtolower($captcha['answer']) != strtolower($form_values['captcha_answer'])) {

This will become a proper setting in one of the future releases of MyCaptcha.

Kind regards,

Heine Deelstra

  • reply

Thanks!

Anonymous (not verified) — Wed, 04/07/2007 - 05:19

Thank you very much Heine, thats great to hear. Cheers for the prompt reply too

Its an excellent wee module you've got here, which I'll be using in all my Drupal sites from now on. Sick of struggling with the standard drupal captcha / or bot spam.

  • reply

Post new comment

I reserve the right to edit any comment submitted to the site. If your comment contains flaming, advertisements, or simply too many spelling errors (leet speak), it may never appear.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <as>, <as3>, <csharp>, <diff>, <drupal5>, <drupal6>, <html>, <js>, <mysql>, <php>, <phpbrief>, <python>, <sql>, <plain>, <xml>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

Recent posts

  • Using <embed> for XSS
  • Bugfix woes for Drupal 6
  • Arbitrary PHP code execution in modx 1.0.0 via CSRF
  • The #drupal consultant
  • Varnish vs. page cache graph
more

Tags

Captcha CSRF Drupal embed Input Format modx Performance PHP Pitfalls Planet Drupal Security Varnish
more tags
  • home
  • drupal
  • drupal core commits
  • about

Copyright © 2009 by Heine Deelstra. All rights reserved.