Permalink
Browse files

switched to getClientIp

  • Loading branch information...
1 parent cbdf559 commit a71b227d49878786df9feb2ef815b8c53e0ce073 @bamarni bamarni committed Feb 11, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 Form/Core/Validator/ReCaptchaValidator.php
@@ -76,13 +76,12 @@ public function validate(DataEvent $event)
$error = '';
$request = $this->request->request;
- $server = $this->request->server;
$datas = array(
'privatekey' => $this->privateKey,
'challenge' => $request->get('recaptcha_challenge_field'),
'response' => $request->get('recaptcha_response_field'),
- 'remoteip' => $server->get('REMOTE_ADDR')
+ 'remoteip' => $this->request->getClientIp()
);
if (empty($this->options['code'])) {

0 comments on commit a71b227

Please sign in to comment.