Project

General

Profile

Bug #18816 ยป locationheader_siteurl.diff

Administrator Admin, 2008-05-19 23:10

View differences:

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;
}
    (1-1/1)