locationheader_siteurl.diff

Administrator Admin, 2008-05-19 23:10

Download (591 Bytes)

View differences:

t3lib/class.t3lib_div.php
2981 2981
	public static function locationHeaderUrl($path)	{
2982 2982
		$uI = parse_url($path);
2983 2983
		if (substr($path,0,1)=='/')	{ // relative to HOST
2984
			$path = t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST').$path;
2984
			$path = substr(t3lib_div::getIndpEnv('TYPO3_SITE_URL'),0,-1).$path;
2985 2985
		} elseif (!$uI['scheme'])	{ // No scheme either
2986 2986
			$path = t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR').$path;
2987 2987
		}