Skip to content

Commit

Permalink
Use rcube_utils::https_check() instead of _SERVER var.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsoares committed May 2, 2018
1 parent 8034f90 commit e88873f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcguard.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private function show_recaptcha($loginform)
$this->include_stylesheet($skin_path . '/rcguard.css');
$this->include_script('rcguard.js');

$recaptcha_api = ($rcmail->config->get('recaptcha_https') || $_SERVER['HTTPS']) ?
$recaptcha_api = ($rcmail->config->get('recaptcha_https') || rcube_utils::https_check()) ?
$rcmail->config->get('recaptcha_api_secure') : $rcmail->config->get('recaptcha_api');

$src = sprintf("%s?hl=%s", $recaptcha_api, $rcmail->user->language);
Expand Down

0 comments on commit e88873f

Please sign in to comment.