mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
http:// to https://
This commit is contained in:
parent
749f372042
commit
032fa8c736
4 changed files with 7 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue