Parcourir la source

ZF-11136
Zend_Service
Updated Zend_Service_ReCaptcha to reflect new service URIs


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23910 44c647ce-9c0f-0410-b52a-842ac1e357ba

adamlundrigan il y a 14 ans
Parent
commit
a4e51d3bcf
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      library/Zend/Service/ReCaptcha.php

+ 5 - 3
library/Zend/Service/ReCaptcha.php

@@ -45,21 +45,21 @@ class Zend_Service_ReCaptcha extends Zend_Service_Abstract
      *
      *
      * @var string
      * @var string
      */
      */
-    const API_SERVER = 'http://api.recaptcha.net';
+    const API_SERVER = 'http://www.google.com/recaptcha/api';
 
 
     /**
     /**
      * URI to the secure API
      * URI to the secure API
      *
      *
      * @var string
      * @var string
      */
      */
-    const API_SECURE_SERVER = 'https://api-secure.recaptcha.net';
+    const API_SECURE_SERVER = 'https://www.google.com/recaptcha/api';
 
 
     /**
     /**
      * URI to the verify server
      * URI to the verify server
      *
      *
      * @var string
      * @var string
      */
      */
-    const VERIFY_SERVER = 'http://api-verify.recaptcha.net/verify';
+    const VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify';
 
 
     /**
     /**
      * Public key used when displaying the captcha
      * Public key used when displaying the captcha
@@ -385,6 +385,8 @@ class Zend_Service_ReCaptcha extends Zend_Service_Abstract
             throw new Zend_Service_ReCaptcha_Exception('Missing public key');
             throw new Zend_Service_ReCaptcha_Exception('Missing public key');
         }
         }
 
 
+        var_dump(self::API_SERVER);
+
         $host = self::API_SERVER;
         $host = self::API_SERVER;
 
 
         if ((bool) $this->_params['ssl'] === true) {
         if ((bool) $this->_params['ssl'] === true) {