1
0
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:
Igor Wiedler
2011-08-18 22:25:17 +02:00
parent a48889fed8
commit f84460c710
4 changed files with 5 additions and 5 deletions

View File

@@ -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)