File: update-service-url.patch

package info (click to toggle)
python-recaptcha 1.0.5-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 152 kB
  • ctags: 65
  • sloc: python: 332; makefile: 3
file content (82 lines) | stat: -rw-r--r-- 4,627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Recaptcha service has moved from recaptcha.net to www.google.com.

Old URL are still working but the corresponding SSL certificate has not been renewed.
Closes: #637880.

diff -Naur recaptcha-client-1.0.5/PKG-INFO recaptcha-client-1.0.6/PKG-INFO
--- recaptcha-client-1.0.5/PKG-INFO	2009-10-28 22:48:51.000000000 +0100
+++ recaptcha-client-1.0.6/PKG-INFO	2011-04-12 21:08:50.000000000 +0200
@@ -10,8 +10,8 @@
         any imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
         Also allows you to securely obfuscate emails with Mailhide. This functionality
         requires pycrypto. This library requires two types of API keys. If you'd like
-        to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey.
-        For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
+        to use the CAPTCHA, you'll need a key from https://www.google.com/recaptcha/admin/create.
+        For Mailhide, you'll need a key from http://www.google.com/recaptcha/mailhide/apikey.
         
         The trunk can be checked out from
         http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,
diff -Naur recaptcha-client-1.0.5/recaptcha/client/captcha.py recaptcha-client-1.0.6/recaptcha/client/captcha.py
--- recaptcha-client-1.0.5/recaptcha/client/captcha.py	2009-07-30 21:08:35.000000000 +0200
+++ recaptcha-client-1.0.6/recaptcha/client/captcha.py	2011-04-12 20:53:27.000000000 +0200
@@ -1,8 +1,8 @@
 import urllib2, urllib
 
-API_SSL_SERVER="https://api-secure.recaptcha.net"
-API_SERVER="http://api.recaptcha.net"
-VERIFY_SERVER="api-verify.recaptcha.net"
+API_SSL_SERVER="https://www.google.com/recaptcha/api"
+API_SERVER="http://www.google.com/recaptcha/api"
+VERIFY_SERVER="www.google.com"
 
 class RecaptchaResponse(object):
     def __init__(self, is_valid, error_code=None):
@@ -73,7 +73,7 @@
             })
 
     request = urllib2.Request (
-        url = "http://%s/verify" % VERIFY_SERVER,
+        url = "http://%s/recaptcha/api/verify" % VERIFY_SERVER,
         data = params,
         headers = {
             "Content-type": "application/x-www-form-urlencoded",
--- recaptcha-client-1.0.5/recaptcha/client/mailhide.py	2009-07-30 21:08:35.000000000 +0200
+++ recaptcha-client-1.0.6/recaptcha/client/mailhide.py	2011-04-12 20:53:27.000000000 +0200
@@ -6,7 +6,7 @@
 except:
     raise Exception ("You need the pycrpyto library: http://cheeseshop.python.org/pypi/pycrypto/")
 
-MAIL_HIDE_BASE="http://mailhide.recaptcha.net"
+MAIL_HIDE_BASE="http://www.google.com/recaptcha/mailhide"
 
 def asurl (email,
                  public_key,
diff -Naur recaptcha-client-1.0.5/recaptcha_client.egg-info/PKG-INFO recaptcha-client-1.0.6/recaptcha_client.egg-info/PKG-INFO
--- recaptcha-client-1.0.5/recaptcha_client.egg-info/PKG-INFO	2009-10-28 22:48:51.000000000 +0100
+++ recaptcha-client-1.0.6/recaptcha_client.egg-info/PKG-INFO	2011-04-12 21:08:50.000000000 +0200
@@ -10,8 +10,8 @@
         any imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
         Also allows you to securely obfuscate emails with Mailhide. This functionality
         requires pycrypto. This library requires two types of API keys. If you'd like
-        to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey.
-        For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
+        to use the CAPTCHA, you'll need a key from https://www.google.com/recaptcha/admin/create.
+        For Mailhide, you'll need a key from http://www.google.com/recaptcha/mailhide/apikey.
         
         The trunk can be checked out from
         http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,
diff -Naur recaptcha-client-1.0.5/setup.py recaptcha-client-1.0.6/setup.py
--- recaptcha-client-1.0.5/setup.py	2009-10-28 22:46:57.000000000 +0100
+++ recaptcha-client-1.0.6/setup.py	2011-04-12 20:53:27.000000000 +0200
@@ -16,8 +16,8 @@
 any imaging libraries because the CAPTCHA is served directly from reCAPTCHA.
 Also allows you to securely obfuscate emails with Mailhide. This functionality
 requires pycrypto. This library requires two types of API keys. If you'd like
-to use the CAPTCHA, you'll need a key from http://recaptcha.net/api/getkey.
-For Mailhide, you'll need a key from http://mailhide.recaptcha.net/apikey.
+to use the CAPTCHA, you'll need a key from https://www.google.com/recaptcha/admin/create.
+For Mailhide, you'll need a key from http://www.google.com/recaptcha/mailhide/apikey.
 
 The trunk can be checked out from
 http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python,