[TYPO3-core] RFC: Bug 1655: Allow HTTPS in t3lib_div::substUrlsInPlainText()
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Wed Aug 23 16:56:07 CEST 2006
Sebastian Kurfuerst schrieb:
> Hi,
>
> -1 stop!
>
> I made a mistake.. The patch would replace every http or https url with
> http/https depending on the server setting.
>
> So imagine you had an SSL server and a non-ssl URL, you would get an ssl
> url instead.
Oops, you right.
I guess the protocol of the link should be preserved. So we need two loops,
one for each protcol:
foreach (array('http','https' /* ,'ftp' */) as $protocol) {
$urlSplit=explode($protocol.'://',$message);
...
}
Masi
More information about the TYPO3-team-core
mailing list