use Friendica\Core\System;
use Friendica\Util\Network;
use Friendica\Util\Strings;
use Friendica\Core\System;
use Friendica\Util\Network;
use Friendica\Util\Strings;
{
if ($this->sslPolicy === self::SSL_POLICY_SELFSIGN && $ssl) {
return Network::switchScheme($this->url);
{
if ($this->sslPolicy === self::SSL_POLICY_SELFSIGN && $ssl) {
return Network::switchScheme($this->url);
* @param string? $urlPath
*
* @return bool true, if successful
* @param string? $urlPath
*
* @return bool true, if successful
- * @param IConfig $config The Friendica IConfiguration
- * @param array $server The $_SERVER array
+ * @param IManageConfigValues $config The Friendica IConfiguration
+ * @param array $server The $_SERVER array
{
// Remove the hostname from the url if it is an internal link
$nurl = Strings::normaliseLink($origURL);
{
// Remove the hostname from the url if it is an internal link
$nurl = Strings::normaliseLink($origURL);
* @param string $toUrl The destination URL (Default is empty, which is the default page of the Friendica node)
* @param bool $ssl if true, base URL will try to get called with https:// (works just for relative paths)
*
* @param string $toUrl The destination URL (Default is empty, which is the default page of the Friendica node)
* @param bool $ssl if true, base URL will try to get called with https:// (works just for relative paths)
*
{
if (!empty(parse_url($toUrl, PHP_URL_SCHEME))) {
throw new HTTPException\InternalServerErrorException("'$toUrl is not a relative path, please use System::externalRedirectTo");
{
if (!empty(parse_url($toUrl, PHP_URL_SCHEME))) {
throw new HTTPException\InternalServerErrorException("'$toUrl is not a relative path, please use System::externalRedirectTo");