mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
http:// to https://
This commit is contained in:
parent
749f372042
commit
032fa8c736
4 changed files with 7 additions and 15 deletions
|
|
@ -112,7 +112,7 @@ class LinkFinder
|
|||
$sNameLink = $sLink;
|
||||
if (!\preg_match('/^[a-z]{3,5}\:\/\//i', \ltrim($sLink)))
|
||||
{
|
||||
$sLink = 'http://'.\ltrim($sLink);
|
||||
$sLink = 'https://'.\ltrim($sLink);
|
||||
}
|
||||
|
||||
return '<a '.($bAddTargetBlank ? 'target="_blank" ': '').'href="'.$sLink.'">'.$sNameLink.'</a>';
|
||||
|
|
|
|||
|
|
@ -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