Issues

ZF-11136: Recaptcha urls have changed

Issue Type: Bug Created: 2011-03-04T14:32:51.000+0000 Last Updated: 2011-12-14T10:30:23.000+0000 Status: Resolved Fix version(s): - 1.11.6 (05/May/11)

Reporter: Michiel Thalen (chielsen) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Service_ReCaptcha

Related issues: Attachments:

Description

The urls have changes into these:

<pre class="highlight">
    /**
     * URI to the regular API
     *
     * @var string
     */
    const API_SERVER = '<a href="http://www.google.com/recaptcha/api">http://www.google.com/recaptcha/api</a>';

    /**
     * URI to the secure API
     *
     * @var string
     */
    const API_SECURE_SERVER = '<a href="https://www.google.com/recaptcha/api">https://www.google.com/recaptcha/api</a>';

    /**
     * URI to the verify server
     *
     * @var string
     */
    const VERIFY_SERVER = '<a href="http://www.google.com">http://www.google.com</a>';

The old urls are still working but are being redirected.

Comments

Posted by Dennis Becker (radhad) on 2011-04-12T15:12:07.000+0000

This impact hit today my websites! I have manually changed the URLs. Also read this official announcement at http://groups.google.com/group/recaptcha/…

This should be fixed in the next mini release!

Posted by Dennis Becker (radhad) on 2011-04-12T15:30:27.000+0000

There is NO redirect to the new URLs and maybe there won't be any in the future!

Posted by Pedro Agrelos (agrelos) on 2011-04-29T11:07:42.000+0000

Using the VERIFY_SERVER above returns 405 error - "The request method POST is inappropriate for the URL /".

Got it working with

const VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify';

Posted by Adam Lundrigan (adamlundrigan) on 2011-04-30T18:47:04.000+0000

Updated Zend_Captcha_ReCaptcha using new URIs from official Google announcement: http://groups.google.com/group/recaptcha-announce/…

<pre class="highlight">
Index: library/Zend/Service/ReCaptcha.php
===================================================================
--- library/Zend/Service/ReCaptcha.php  (revision 23906)
+++ library/Zend/Service/ReCaptcha.php  (working copy)
@@ -45,21 +45,21 @@
      *
      * @var string
      */
-    const API_SERVER = '<a href="http://api.recaptcha.net">http://api.recaptcha.net</a>';
+    const API_SERVER = '<a href="http://www.google.com/recaptcha/api">http://www.google.com/recaptcha/api</a>';

     /**
      * URI to the secure API
      *
      * @var string
      */
-    const API_SECURE_SERVER = '<a href="https://api-secure.recaptcha.net">https://api-secure.recaptcha.net</a>';
+    const API_SECURE_SERVER = '<a href="https://www.google.com/recaptcha/api">https://www.google.com/recaptcha/api</a>';

     /**
      * URI to the verify server
      *
      * @var string
      */
-    const VERIFY_SERVER = '<a href="http://api-verify.recaptcha.net/verify">http://api-verify.recaptcha.net/verify</a>';
+    const VERIFY_SERVER = '<a href="http://www.google.com/recaptcha/api/verify">http://www.google.com/recaptcha/api/verify</a>';

     /**
      * Public key used when displaying the captcha

No visible effect on result of Zend_Service or Zend_Captcha test suites.

Posted by Adam Lundrigan (adamlundrigan) on 2011-04-30T18:48:42.000+0000

Fixed in trunk r23910

Posted by Adam Lundrigan (adamlundrigan) on 2011-04-30T19:02:17.000+0000

Updated in trunk r23911 (Removed stray var_dump() from Zend_Service_ReCaptcha (bad Adam *smack*))

Posted by Satoru Yoshida (satoruyoshida) on 2011-05-03T10:39:33.000+0000

Hello, Adam. I will push [solve] button as proxy for You. If You want to release at next mini, You can merge this commit fron trunk to 1.11 branch.

Thanks.

Posted by Satoru Yoshida (satoruyoshida) on 2011-05-03T15:02:31.000+0000

Fixed 1.11 branch at r23958

Posted by Jon Nott (jonnott) on 2011-12-14T10:30:23.000+0000

Also, the link to API docs in the code (by options) now results in a 404. New location appears to be:

http://code.google.com/apis/recaptcha/…

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts