aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMiłosz Kłosowicz <register@miklobit.com>2021-04-12 10:33:21 +0000
committerMiłosz Kłosowicz <register@miklobit.com>2021-04-12 10:33:21 +0000
commitaa2450fae1fe41a6b100d152209f66fb66bc270e (patch)
tree8cf5818003dd3dad20e54fc413a5451df1766423 /Zotlabs/Module
parentf0e5ce7fd1dae13cc257a8a860fccbc294530776 (diff)
downloadvolse-hubzilla-aa2450fae1fe41a6b100d152209f66fb66bc270e.tar.gz
volse-hubzilla-aa2450fae1fe41a6b100d152209f66fb66bc270e.tar.bz2
volse-hubzilla-aa2450fae1fe41a6b100d152209f66fb66bc270e.zip
Wfinger - check https from http_x_forwarded_proto
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Wfinger.php2
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']);