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.

Copy link

digioz replied 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!

@herakles29

This comment has been minimized.

Copy link

herakles29 replied Dec 29, 2013

Really appreciated!!

@gold4joey

This comment has been minimized.

Copy link

gold4joey replied Jan 3, 2014

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

@hbagheri

This comment has been minimized.

Copy link

hbagheri replied 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?

Please sign in to comment.