Project

General

Profile

Feature #16318 » 0003787-TSFE_jumpURL_HTTPStatusCode.patch

Administrator Admin, 2008-07-10 12:01

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
$params = '&FE_SESSION_KEY='.rawurlencode($this->fe_user->id.'-'.md5($this->fe_user->id.'/'.$this->TYPO3_CONF_VARS['SYS']['encryptionKey']));
$this->jumpurl.= ($uParts['query']?'':'?').$params; // Add the session parameter ...
}
if ($TSConf['TSFE.']['jumpURL_HTTPStatusCode']) {
switch (intval($TSConf['TSFE.']['jumpURL_HTTPStatusCode'])){
case 301:
header('HTTP/1.1 301 Moved Permanently');
break;
case 302:
header('HTTP/1.1 302 Found');
break;
case 303:
header('HTTP/1.1 303 See Other');
break;
case 307:
header('HTTP/1.1 307 Temporary Redirect');
break;
}
}
header('Location: '.$this->jumpurl);
exit;
}
(1-1/3)