"MDL-19037, use getremoteaddr to get remote ip address"

This commit is contained in:
dongsheng 2009-05-01 03:04:10 +00:00
parent 224eccbfe2
commit b8aa76c1a4
5 changed files with 5 additions and 5 deletions

View file

@ -129,7 +129,7 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input {
global $CFG;
require_once $CFG->libdir . '/recaptchalib.php';
$response = recaptcha_check_answer($CFG->recaptchaprivatekey,
$_SERVER['REMOTE_ADDR'],
getremoteaddr(),
$challenge_field,
$response_field,
$this->_https);