mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Minor, fix an issue where recaptcha is included over HTTP on HTTPS installs and blocked by Chrome.
This commit is contained in:
parent
a44de4f76c
commit
c4efeb3c97
1 changed files with 5 additions and 1 deletions
|
@ -65,10 +65,14 @@ final class AphrontFormRecaptchaControl extends AphrontFormControl {
|
|||
protected function renderInput() {
|
||||
self::requireLib();
|
||||
|
||||
$uri = new PhutilURI(PhabricatorEnv::getEnvConfig('phabricator.base-uri'));
|
||||
$protocol = $uri->getProtocol();
|
||||
$use_ssl = ($protocol == 'https');
|
||||
|
||||
return recaptcha_get_html(
|
||||
PhabricatorEnv::getEnvConfig('recaptcha.public-key'),
|
||||
$error = null,
|
||||
$use_ssl = false);
|
||||
$use_ssl);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue