Skip to content

Commit

Permalink
Merge pull request #2497 from adrianspeyer/patch-23
Browse files Browse the repository at this point in the history
Changes links to create Recpatcha code.
  • Loading branch information
tburry committed Feb 26, 2015
2 parents 004e7a7 + 592fe14 commit a3968d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/vendors/recaptcha/functions.recaptchalib.php
Expand Up @@ -4,7 +4,7 @@
* - Documentation and latest version
* http://recaptcha.net/plugins/php/
* - Get a reCAPTCHA API Key
* https://www.google.com/recaptcha/admin/create
* https://www.google.com/recaptcha/admin
* - Discussion group
* http://groups.google.com/group/recaptcha
*
Expand Down Expand Up @@ -106,7 +106,7 @@ function _recaptcha_http_post($host, $path, $data, $port = 80) {
function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
{
if ($pubkey == null || $pubkey == '') {
echo (T('ToUseRecaptcha', "To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>"));
echo (T('ToUseRecaptcha', "To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin'>https://www.google.com/recaptcha/admin</a>"));
return;
}

Expand Down Expand Up @@ -153,7 +153,7 @@ class ReCaptchaResponse {
function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
{
if ($privkey == null || $privkey == '') {
die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin'>https://www.google.com/recaptcha/admin</a>");
}

if ($remoteip == null || $remoteip == '') {
Expand Down Expand Up @@ -201,7 +201,7 @@ function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $ex
* @param string $appname The name of your application
*/
function recaptcha_get_signup_url ($domain = null, $appname = null) {
return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname));
return "https://www.google.com/recaptcha/admin" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname));
}

function _recaptcha_aes_pad($val) {
Expand Down

0 comments on commit a3968d2

Please sign in to comment.