BaseURL components (hostname, SSL policy, urlpath)
I'm currently reducing the whole BaseUrl.php
code massively.
Do we really need the ssl_policy, urlpath and hostname separate from the system.url
?
I will use for the BaseUrl.php
, based on the system.url
a "real" UriInterface
as $this->url
, so we don't need saving the scheme, urlpath and hostname separately anymore. They are just useful for the install process but must not be changed afterwards.
The only thing, which I'm unsure is the ssl_policy
, because if someone changes it afterwards in the admin site, all URL in all contacts and photos will get updated. But the question is => is this even allowed? I think this could brick the access over federation because the base-url of each entry isn't right anymore. And it isn't supported when the policy is changed by console.
So I would drop it as well and merge all config entries into the system.url
.
Additionally, I will replace the Exception with a "CRITICAL" log entry to avoid a WSOD.
Friendica Developers reshared this.
Hypolite Petovan
in reply to Philipp Holzer • • •nurl
) so it wouldn't have an impact on Friendica federation.Friendica Developers reshared this.
Hypolite Petovan
Unknown parent • • •Friendica Developers reshared this.
Philipp Holzer
Unknown parent • •https
and there is no check at all in the code that would fail here. It works fineFriendica Developers reshared this.