mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-09 19:04:48 +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() {
|
protected function renderInput() {
|
||||||
self::requireLib();
|
self::requireLib();
|
||||||
|
|
||||||
|
$uri = new PhutilURI(PhabricatorEnv::getEnvConfig('phabricator.base-uri'));
|
||||||
|
$protocol = $uri->getProtocol();
|
||||||
|
$use_ssl = ($protocol == 'https');
|
||||||
|
|
||||||
return recaptcha_get_html(
|
return recaptcha_get_html(
|
||||||
PhabricatorEnv::getEnvConfig('recaptcha.public-key'),
|
PhabricatorEnv::getEnvConfig('recaptcha.public-key'),
|
||||||
$error = null,
|
$error = null,
|
||||||
$use_ssl = false);
|
$use_ssl);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue