Change config webfinger/http_alias to fix/legacy_http

Set $config['fix']['legacy_http'] to perform some actions that are
needed if your site used to be served over http but now has upgraded
to https!
This commit is contained in:
Mikael Nordfeldth
2016-03-23 15:21:02 +01:00
parent 250d99d997
commit f83b81b8c4
3 changed files with 2 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ abstract class WebFingerResource
// (because remote sites look for it) verify that they are still
// the same identity as they were on HTTP. Should NOT be used if
// you've run HTTPS all the time!
if (common_config('webfinger', 'http_alias')) {
if (common_config('fix', 'legacy_http')) {
foreach ($aliases as $alias=>$id) {
if (!strtolower(parse_url($alias, PHP_URL_SCHEME)) === 'https') {
continue;