Bug #18816 ยป locationheader_siteurl.diff
t3lib/class.t3lib_div.php | ||
---|---|---|
public static function locationHeaderUrl($path) {
|
||
$uI = parse_url($path);
|
||
if (substr($path,0,1)=='/') { // relative to HOST
|
||
$path = t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST').$path;
|
||
$path = substr(t3lib_div::getIndpEnv('TYPO3_SITE_URL'),0,-1).$path;
|
||
} elseif (!$uI['scheme']) { // No scheme either
|
||
$path = t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR').$path;
|
||
}
|