mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[feature/request-class] Make use of the is_secure() method
PHPBB3-9716
This commit is contained in:
@@ -42,7 +42,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
|
||||
function phpbb_recaptcha()
|
||||
{
|
||||
global $request;
|
||||
$this->recaptcha_server = $request->server('HTTPS') == 'on' ? $this->recaptcha_server_secure : $this->recaptcha_server;
|
||||
$this->recaptcha_server = $request->is_secure() ? $this->recaptcha_server_secure : $this->recaptcha_server;
|
||||
}
|
||||
|
||||
function init($type)
|
||||
|
Reference in New Issue
Block a user