Solved

Captcha on Mac

Posted on 2013-10-29
5
598 Views
Last Modified: 2013-10-30
We have a website that uses "captcha" such that when the user completes a form, there is a 5 letter / number code that must be retyped.

All is done in php.

On Mac computers using Safari, the browser automatically uppercases the first letter of the response; since this DOES NOT produce a match, it fails. The customer does not realize what is happening.

Is there a way to either prevent that from happening or to force Captcha to upper case the first letter?

Note I have NO CONTROL over how users will have configured their browser.

The captcha modules is attached.

Thanks
CaptchaSecurityImages.php
0
Comment
Question by:Richard Korts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39610196
Yes, this is easy to fix.  I have an article on CAPTCHA here with several examples.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_9849-Making-CAPTCHA-Friendlier-with-PHP-Image-Manipulation.html

You probably don't want to be using a piece of free code from 2006, anyway!  That would be like driving a 2006 car -- it's warranty has expired!
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39610201
But if you decide you want to keep that old thing, change line 30 to this:

            return strtoupper($code);

And in whatever place you check the security code make a similar normalization with strtoupper().
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39610397
Most captchas like the reCaptcha from Google are made to be case insensitive.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39610477
Safari on my MacBook Pro with OS X 10.6.8 does not do that, it does not capitalize the first letter.  Which version of OSX and Safari is doing that?
0
 

Author Comment

by:Richard Korts
ID: 39611474
DaveBaldwin

It doesn't do it on the iPad either.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question