Project

General

Profile

Bug #14547 » class.tslib_fe.php.amp.patch

Administrator Admin, 2005-05-18 14:59

View differences:

class.tslib_fe.php 2005-05-18 14:58:16.571932600 +0200
*/
function setIDfromArgV() {
if (!$this->id) {
list($theAlias) = explode('&',t3lib_div::getIndpEnv('QUERY_STRING'));
list($theAlias) = explode('&',t3lib_div::getIndpEnv('QUERY_STRING'));
$theAlias = trim($theAlias);
$this->id = $theAlias ? $theAlias : 0;
}
......
$TSConf = $this->getPagesTSconfig();
if ($TSConf['TSFE.']['jumpUrl_transferSession']) {
$uParts = parse_url($this->jumpurl);
$params = '&FE_SESSION_KEY='.rawurlencode($this->fe_user->id.'-'.md5($this->fe_user->id.'/'.$this->TYPO3_CONF_VARS['SYS']['encryptionKey']));
$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 ...
}
Header('Location: '.$this->jumpurl);
......
function simulateStaticDocuments_pEnc_onlyP_proc($linkVars) {
$remainLinkVars = '';
if (strcmp($linkVars,'')) {
$p = explode('&',$linkVars);
$p = preg_split('/&(amp;)?/',$linkVars);
sort($p); // This sorts the parameters - and may not be needed and further it will generate new MD5 hashes in many cases. Maybe not so smart. Hmm?
$rem = array();
foreach($p as $k => $v) {
......
} else unset($p[$k]);
}
$linkVars = count($p) ? '&'.implode('&',$p) : '';
$remainLinkVars = count($rem) ? '&'.implode('&',$rem) : '';
$linkVars = count($p) ? '&'.implode('&',$p) : '';
$remainLinkVars = count($rem) ? '&'.implode('&',$rem) : '';
}
return array($linkVars, $remainLinkVars);
}
......
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php']);
}
?>
?>
(4-4/6)