diff options
author | Miłosz Kłosowicz <register@miklobit.com> | 2021-04-12 10:33:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-20 10:57:00 +0200 |
commit | c31e203104a966f55806018b2aa659bbcc4b7995 (patch) | |
tree | a42402323bacc5341497c61c4443070cff4f7e3f | |
parent | 6feefc5ce0615e0f40e10d576a78d96ec8fd40e4 (diff) | |
download | volse-hubzilla-c31e203104a966f55806018b2aa659bbcc4b7995.tar.gz volse-hubzilla-c31e203104a966f55806018b2aa659bbcc4b7995.tar.bz2 volse-hubzilla-c31e203104a966f55806018b2aa659bbcc4b7995.zip |
Wfinger - check https from http_x_forwarded_proto
(cherry picked from commit aa2450fae1fe41a6b100d152209f66fb66bc270e)
-rw-r--r-- | Zotlabs/Module/Wfinger.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wfinger.php b/Zotlabs/Module/Wfinger.php index 6f2864615..46da7f007 100644 --- a/Zotlabs/Module/Wfinger.php +++ b/Zotlabs/Module/Wfinger.php @@ -20,6 +20,8 @@ class Wfinger extends \Zotlabs\Web\Controller { $scheme = 'https'; elseif(x($_SERVER,'SERVER_PORT') && (intval($_SERVER['SERVER_PORT']) == 443)) $scheme = 'https'; + elseif(x($_SERVER,'HTTP_X_FORWARDED_PROTO') && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) + $scheme = 'https'; $zot = intval($_REQUEST['zot']); |