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

@ -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>';