From f3373e1e322bcd7cd084600ac27c44e0912f9e56 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Fri, 21 Nov 2014 12:17:04 -0800 Subject: [ticket/13316] Ensure Recaptcha image uses https when necessary. PHPBB3-13316 --- phpBB/phpbb/captcha/plugins/recaptcha.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/captcha/plugins/recaptcha.php b/phpBB/phpbb/captcha/plugins/recaptcha.php index ea446d7bc3..584f3afec1 100644 --- a/phpBB/phpbb/captcha/plugins/recaptcha.php +++ b/phpBB/phpbb/captcha/plugins/recaptcha.php @@ -26,8 +26,10 @@ class recaptcha extends captcha_abstract var $challenge; var $response; - // PHP4 Constructor - function phpbb_recaptcha() + /** + * Constructor + */ + public function __construct() { global $request; $this->recaptcha_server = $request->is_secure() ? $this->recaptcha_server_secure : $this->recaptcha_server; -- cgit v1.2.1