⚲
Project
General
Profile
Sign in
Home
Projects
Help
Search
:
TYPO3 Core
All Projects
TYPO3 Core
Overview
Activity
Roadmap
Issues
Repository
Download (1.33 KB)
Bug #21053
» patch-https.txt
Administrator Admin, 2009-09-17 12:35
Index: typo3/sysext/cms/tslib/class.tslib_content.php
===================================================================
--- typo3/sysext/cms/tslib/class.tslib_content.php (revision 5948)
+++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
@@ -6120,6 +6120,19 @@
$LD = $this->lastTypoLinkLD;
}
+ //check absolute and https configuration
+ if ($conf['forceAbsoluteUrl']) {
+ if (!strpos('http://',$this->lastTypoLinkUrl) && !strpos('https://',$this->lastTypoLinkUrl)) {
+ //link is not absolute yet
+ $this->lastTypoLinkUrl = t3lib_div::locationHeaderUrl($this->lastTypoLinkUrl);
+ }
+ }
+ if ($conf['forceHttps']) {
+ //an absolute link is forced to https
+ $this->lastTypoLinkUrl = str_replace('http://','https://', $this->lastTypoLinkUrl);
+ }
+
+
// Rendering the tag.
$finalTagParts['url']=$this->lastTypoLinkUrl;
$finalTagParts['targetParams']=$targetPart;
« Previous
1
2
3
Next »
(1-1/3)
Loading...