Permalink
Browse files

Fixed broken recaptcha urls

  • Loading branch information...
SniperSister committed Nov 7, 2013
1 parent ace2e0a commit 1317ea7957a74fa1a188e58c3da3ba88e4ac1d89
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/captcha/recaptcha/recaptcha.php
@@ -21,9 +21,9 @@
*/
class plgCaptchaRecaptcha extends JPlugin
{
- const RECAPTCHA_API_SERVER = "http://api.recaptcha.net";
+ const RECAPTCHA_API_SERVER = "http://www.google.com/recaptcha/api";
const RECAPTCHA_API_SECURE_SERVER = "https://www.google.com/recaptcha/api";
- const RECAPTCHA_VERIFY_SERVER = "api-verify.recaptcha.net";
+ const RECAPTCHA_VERIFY_SERVER = "www.google.com";
public function __construct($subject, $config)
{
@@ -115,7 +115,7 @@ public function onCheckAnswer($code)
return false;
}
- $response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/verify",
+ $response = $this->_recaptcha_http_post(self::RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
array(
'privatekey' => $privatekey,
'remoteip' => $remoteip,

4 comments on commit 1317ea7

@digioz

This comment has been minimized.

Show comment
Hide comment
@digioz

digioz Nov 23, 2013

Thank you very much for providing this fix. I was scratching my head for a while when Joomla Recaptcha stopped working all of the sudden!

Thank you very much for providing this fix. I was scratching my head for a while when Joomla Recaptcha stopped working all of the sudden!

@herakles29

This comment has been minimized.

Show comment
Hide comment
@herakles29

herakles29 Dec 29, 2013

Really appreciated!!

Really appreciated!!

@gold4joey

This comment has been minimized.

Show comment
Hide comment
@gold4joey

gold4joey Jan 3, 2014

Thanks for the code. You saved me from heart attack.

Thanks for the code. You saved me from heart attack.

@hbagheri

This comment has been minimized.

Show comment
Hide comment
@hbagheri

hbagheri May 11, 2014

I have problem yet?
can any one help me?
I'm in Iran do you think that it's because of sanctions?

I have problem yet?
can any one help me?
I'm in Iran do you think that it's because of sanctions?

Please sign in to comment.