[BUGFIX] Pages with Enforce Protocol (SSL) may generate wrong URL
authorSteffen Ritter <info@rs-websystems.de>
Tue, 1 Mar 2011 12:42:24 +0000 (13:42 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Thu, 10 Mar 2011 08:01:26 +0000 (09:01 +0100)
commitcde6deb1c6bf9e3042f748035b7217d1e4120898
tree596d255f95076bd9a0c228bd2fdd4e22f2bcda35
parent9edcbf86d075d0e267a6e8fdb17eadd2def0fdc1
[BUGFIX] Pages with Enforce Protocol (SSL) may generate wrong URL

If TYPO3 is installed in a subfolder, you won't need a absRefPrefix set because normally links are relative.
If a Protocol change will (SSL -> PLAIN or vice versa) happen, the URL has to be generated absolute.
This will fail in the described behaviour.

Notes:
This one has been reported by Michael Maier.
Attached patch is my "easier to read" version doing the same as _v2 of Jigal and the result of talking through all cases which may arise.

Change-Id: Ie5821361b578b6f1fa3612ac9bfa44dd476c9c76
Resolves: #M17118
Reviewed-on: http://review.typo3.org/953
Reviewed-by: Tobias Liebig <mail_typo3.org@etobi.de>
Reviewed-by: Andreas Wolf <andreas.wolf@ikt-werk.de>
Tested-by: Andreas Wolf <andreas.wolf@ikt-werk.de>
Reviewed-by: Sebastian Fischer <typo3@evoweb.de>
Reviewed-by: Helmut Hummel <typo3@helmut-hummel.de>
Tested-by: Helmut Hummel <typo3@helmut-hummel.de>
Reviewed-by: Jigal van Hemert <jigal@xs4all.nl>
typo3/sysext/cms/tslib/class.tslib_content.php