mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
"MDL-19037, use getremoteaddr to get remote ip address"
This commit is contained in:
parent
224eccbfe2
commit
b8aa76c1a4
5 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue