peoplemerge / recaptcha4j

Automatically exported from code.google.com/p/recaptcha4j
1 stars 1 forks source link

API URL and IE6 #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IE6 doesn't load reCaptcha unless you reload the page with the current api url 
(http://www.google.com/recaptcha/api).

But if you remove "www" section, it works !

So here's the workaround :

    public static ReCaptchaImpl newReCaptcha(final String publicKey, final String privateKey, final boolean includeNoscript) {
        final ReCaptchaImpl captcha = new ReCaptchaImpl();
        captcha.setIncludeNoscript(includeNoscript);
        captcha.setPublicKey(publicKey);
        captcha.setPrivateKey(privateKey);
        captcha.setRecaptchaServer("http://google.com/recaptcha/api");
        return captcha;
    }

Or just change "/src/main/java/net/tanesha/recaptcha/ReCaptchaImpl.java" :

        public static final String HTTP_SERVER = "http://google.com/recaptcha/api";
        public static final String HTTPS_SERVER = "https://google.com/recaptcha/api";
        public static final String VERIFY_URL = "http://google.com/recaptcha/api/verify";

Original issue reported on code.google.com by romain.g...@gmail.com on 12 Jul 2011 at 4:07