http:// to https://

This commit is contained in:
djmaze 2020-07-22 14:55:40 +02:00
parent 749f372042
commit 032fa8c736
4 changed files with 7 additions and 15 deletions

View file

@ -482,15 +482,7 @@ class PdoAddressBook
$sUrl = \preg_replace('/^fruux\.com/i', 'dav.fruux.com', $sUrl);
$sUrl = \preg_replace('/^icloud\.com/i', 'contacts.icloud.com', $sUrl);
$sUrl = \preg_replace('/^gmail\.com/i', 'google.com', $sUrl);
if (\preg_match('/^(google\.|dav\.fruux\.com|contacts\.icloud\.com)/i', $sUrl))
{
$sUrl = 'https://'.$sUrl;
}
else
{
$sUrl = 'http://'.$sUrl;
}
$sUrl = 'https://'.$sUrl;
}
$aUrl = \parse_url($sUrl);