Project

General

Profile

Bug #20630 ยป 11357_use_redirect_cleanup.patch

Administrator Admin, 2009-06-19 01:12

View differences:

typo3/class.show_rechis.inc (Arbeitskopie)
$this->createChangeLog();
$completeDiff = $this->createMultipleDiff();
$this->performRollback($completeDiff);
Header ('Location: '.t3lib_div::locationHeaderUrl($this->returnUrl));
exit;
t3lib_div::redirect($this->returnUrl);
}
// save snapshot
typo3/wizard_edit.php (Arbeitskopie)
// Detecting the various allowed field type setups and acting accordingly.
if (is_array($config) && $config['type']=='select' && !$config['MM'] && $config['maxitems']<=1 && t3lib_div::testInt($this->P['currentValue']) && $this->P['currentValue'] && $fTable) { // SINGLE value:
header('Location: '.t3lib_div::locationHeaderUrl('alt_doc.php?returnUrl='.rawurlencode('wizard_edit.php?doClose=1').'&edit['.$fTable.']['.$this->P['currentValue'].']=edit'));
$redirectUrl = 'alt_doc.php?returnUrl=' . rawurlencode('wizard_edit.php?doClose=1') . '&edit[' . $fTable . '][' . $this->P['currentValue'] . ']=edit';
t3lib_div::redirect($redirectUrl);
} elseif (is_array($config) && $this->P['currentSelectedValues'] && (($config['type']=='select' && $config['foreign_table']) || ($config['type']=='group' && $config['internal_type']=='db'))) { // MULTIPLE VALUES:
// Init settings:
......
}
// Redirect to alt_doc.php:
header('Location: '.t3lib_div::locationHeaderUrl('alt_doc.php?returnUrl='.rawurlencode('wizard_edit.php?doClose=1').$params));
t3lib_div::redirect('alt_doc.php?returnUrl=' . rawurlencode('wizard_edit.php?doClose=1') . $params);
} else {
$this->closeWindow();
}
typo3/class.db_list.inc (Arbeitskopie)
$returnUrl = '&returnUrl='.rawurlencode($this->listURL());
$location = $GLOBALS['BACK_PATH'].'alt_doc.php?'.$params.$returnUrl;
header('Location: '.t3lib_div::locationHeaderUrl($location));
exit;
t3lib_div::redirect($location);
}
}
}
typo3/index.php (Arbeitskopie)
// If there is a redirect URL AND if loginRefresh is not set...
if (!$this->loginRefresh) {
header('Location: '.t3lib_div::locationHeaderUrl($this->redirectToURL));
exit;
t3lib_div::redirect($this->redirectToURL);
} else {
$TBE_TEMPLATE->JScode.=$TBE_TEMPLATE->wrapScriptTags('
if (parent.opener && parent.opener.busy) {
typo3/classes/class.typo3_tcefile.php (Arbeitskopie)
$this->fileProcessor->printLogErrorMessages($this->redirect);
t3lib_BEfunc::getSetUpdateSignal('updateFolderTree');
if ($this->redirect) {
header('Location: ' . t3lib_div::locationHeaderUrl($this->redirect));
t3lib_div::redirect($this->redirect);
}
}
typo3/tce_db.php (Arbeitskopie)
}
if ($this->redirect && !$this->tce->debug) {
Header('Location: '.t3lib_div::locationHeaderUrl($this->redirect));
t3lib_div::redirect($this->redirect);
}
}
}
typo3/wizard_list.php (Arbeitskopie)
// Make redirect:
if (!strcmp($this->pid,'') || strcmp($this->id,'')) { // If pid is blank OR if id is set, then return...
header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
$redirectUrl = $this->P['returnUrl'];
} else { // Otherwise, show the list:
header('Location: '.t3lib_div::locationHeaderUrl('db_list.php?id='.$this->pid.'&table='.$this->P['params']['table'].'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))));
$redirectUrl = 'db_list.php?id=' . $this->pid . '&table=' . $this->P['params']['table'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
}
t3lib_div::redirect($redirectUrl);
}
}
typo3/alt_doc.php (Arbeitskopie)
$returnUrl = '&returnUrl='.rawurlencode(t3lib_div::_GP('returnUrl'));
$location = $GLOBALS['BACK_PATH'].'alt_doc.php?'.$params.$returnUrl;
header('Location: '.t3lib_div::locationHeaderUrl($location));
exit;
t3lib_div::redirect($location);
}
}
}
......
// If code is NOT set OR set to 1, then make a header location redirect to $this->retUrl
if (!$code || $code==1) {
Header('Location: '.t3lib_div::locationHeaderUrl($this->retUrl));
exit;
t3lib_div::redirect($this->retUrl);
} else {
$this->setDocument('',$this->retUrl);
}
......
$retUrl = $sParts['path'].'?'.$setupArr[2].'&returnUrl='.rawurlencode($retUrl);
}
}
Header('Location: '.t3lib_div::locationHeaderUrl($retUrl));
exit;
t3lib_div::redirect($retUrl);
}
}
typo3/wizard_forms.php (Arbeitskopie)
$row = t3lib_BEfunc::getRecord($this->P['table'],$this->P['uid']);
// If the save/close button was pressed, then redirect the screen:
if ($_POST['saveandclosedok_x']) {
header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
exit;
if ($_POST['saveandclosedok_x']) {
t3lib_div::redirect($this->P['returnUrl']);
}
}
} else { // If nothing has been submitted, load the $bodyText variable from the selected database row:
typo3/wizard_table.php (Arbeitskopie)
$tce->process_datamap();
// If the save/close button was pressed, then redirect the screen:
if ($_POST['saveandclosedok_x']) {
header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
exit;
if ($_POST['saveandclosedok_x']) {
t3lib_div::redirect($this->P['returnUrl']);
}
}
} else { // If nothing has been submitted, load the $bodyText variable from the selected database row:
typo3/wizard_add.php (Arbeitskopie)
// Return if new record as parent (not possibly/allowed)
if (!strcmp($this->pid,'')) {
header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
exit;
t3lib_div::redirect($this->P['returnUrl']);
}
// Else proceed:
......
}
}
// Return to the parent alt_doc.php record editing session:
header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
t3lib_div::redirect($this->P['returnUrl']);
} else {
// Redirecting to alt_doc.php with instructions to create a new record AND when closing to return back with information about that records ID etc.
header('Location: '.t3lib_div::locationHeaderUrl('alt_doc.php?returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')).'&returnEditConf=1&edit['.$this->P['params']['table'].']['.$this->pid.']=new'));
// Redirecting to alt_doc.php with instructions to create a new record
// AND when closing to return back with information about that records ID etc.
$redirectUrl = 'alt_doc.php?returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) . '&returnEditConf=1&edit[' . $this->P['params']['table'] . '][' . $this->pid . ']=new';
t3lib_div::redirect($redirectUrl);
}
}
}
typo3/logout.php (Arbeitskopie)
$BE_USER->writelog(255,2,0,1,'User %s logged out from TYPO3 Backend',Array($BE_USER->user['username'])); // Logout written to log
$BE_USER->logoff();
header('Location: '.t3lib_div::locationHeaderUrl(t3lib_div::_GP('redirect')?t3lib_div::_GP('redirect'):'index.php'));
$redirectUrl = (t3lib_div::_GP('redirect') ? t3lib_div::_GP('redirect') : 'index.php');
t3lib_div::redirect($redirectUrl);
}
}
typo3/mod/tools/em/class.em_index.php (Arbeitskopie)
$this->content.= $this->doc->section('Import/Install Extensions:',$content,0,1);
} else {
header('Location: '.t3lib_div::locationHeaderUrl($returnUrl));
t3lib_div::redirect($returnUrl);
}
}
typo3/mod/user/ws/workspaceforms.php (Arbeitskopie)
// if 'Save&Close' was pressed, redirect to main module script
if (t3lib_div::_GP('_saveandclosedok_x')) {
// `n` below is to prevent caching
header('Location: ' . t3lib_div::locationHeaderUrl('index.php?n=' . uniqid('')));
exit();
t3lib_div::redirect('index.php?n=' . uniqid(''));
}
}
typo3/index_re.php (Arbeitskopie)
define('TYPO3_PROCEED_IF_NO_USER', 1);
require ('init.php');
header('Location: '.t3lib_div::locationHeaderUrl(t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR').'index.php'));
t3lib_div::redirect(t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR') . 'index.php'));
?>
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (Arbeitskopie)
if (!$GLOBALS['TSFE']->fe_user->cookieId) {
$content .= '<p style="color:red; font-weight:bold;">' . $this->pi_getLL('cookie_warning', '', 1) . '</p>';
} else {
header('Location: '.t3lib_div::locationHeaderUrl($this->redirectUrl));
exit;
t3lib_div::redirect($this->redirectUrl);
}
}
return $this->conf['wrapContentInBaseClass'] ? $this->pi_wrapInBaseClass($content) : $content;
typo3/sysext/beuser/mod/index.php (Arbeitskopie)
}
$GLOBALS['TYPO3_DB']->exec_UPDATEquery('be_sessions', 'ses_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($GLOBALS['BE_USER']->id, 'be_sessions').' AND ses_name=\'be_typo_user\' AND ses_userid='.intval($GLOBALS['BE_USER']->user['uid']),$updateData);
header('Location: '.t3lib_div::locationHeaderUrl($GLOBALS['BACK_PATH'].'index.php'.($GLOBALS['TYPO3_CONF_VARS']['BE']['interfaces']?'':'?commandLI=1')));
exit;
$redirectUrl = $GLOBALS['BACK_PATH'] . 'index.php' . ($GLOBALS['TYPO3_CONF_VARS']['BE']['interfaces'] ? '' : '?commandLI=1');
t3lib_div::redirect($redirectUrl);
}
}
typo3/sysext/beuser/class.tx_beuser_switchbackuser.php (Arbeitskopie)
);
$GLOBALS['TYPO3_DB']->exec_UPDATEquery('be_sessions', 'ses_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($GLOBALS['BE_USER']->id, 'be_sessions').' AND ses_name=\'be_typo_user\' AND ses_userid='.intval($GLOBALS['BE_USER']->user['uid']),$updateData);
header('Location: '.t3lib_div::locationHeaderUrl($GLOBALS['BACK_PATH'].'index.php'.($GLOBALS['TYPO3_CONF_VARS']['BE']['interfaces']?'':'?commandLI=1')));
exit;
//$GLOBALS['TYPO4
$redirectUrl = $GLOBALS['BACK_PATH'] . 'index.php' . ($GLOBALS['TYPO3_CONF_VARS']['BE']['interfaces'] ? '' : '?commandLI=1');
t3lib_div::redirect($redirectUrl);
}
}
}
typo3/sysext/simulatestatic/class.tx_simulatestatic.php (Arbeitskopie)
$parentObject->printError($message.'<br /><br /><a href="' . htmlspecialchars($redirectUrl) . '">Click here to get to the right page.</a>','Error: PATH_INFO not configured');
}
} else {
t3lib_div::redirect(t3lib_div::locationHeaderUrl($redirectUrl));
t3lib_div::redirect($redirectUrl);
}
exit;
// Set no_cache if PATH_INFO is NOT used as simulateStaticDoc.
typo3/sysext/viewpage/view/index.php (Arbeitskopie)
* @return void
*/
function printContent() {
Header('Location: '.t3lib_div::locationHeaderUrl($this->url));
t3lib_div::redirect($this->url);
}
}
typo3/sysext/openid/class.tx_openid_eid.php (Arbeitskopie)
// Redirect to the original location in any case (authenticated or not)
@ob_end_clean();
header(t3lib_div::HTTP_STATUS_303);
header('Location: ' . t3lib_div::locationHeaderUrl(t3lib_div::_GP('tx_openid_location')));
exit;
t3lib_div::redirect(t3lib_div::_GP('tx_openid_location'), t3lib_div::HTTP_STATUS_303);
}
}
typo3/sysext/openid/sv1/class.tx_openid_sv1.php (Arbeitskopie)
// requests without resending the form. This is exactly what we need here.
// See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4
@ob_end_clean();
header(t3lib_div::HTTP_STATUS_303);
header('Location: ' . $redirectURL);
t3lib_div::redirect($redirectURL, t3lib_div::HTTP_STATUS_303);
} else {
$formHtml = $authenticationRequest->htmlMarkup($trustedRoot,
$returnURL, false, array('id' => 'openid_message'));
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
$this->printError('Configuration Error: 404 page "'.$readFile.'" could not be found.');
}
} elseif (t3lib_div::isFirstPartOfStr($code,'REDIRECT:')) {
header('Location: '.t3lib_div::locationHeaderUrl(substr($code,9)));
exit;
t3lib_div::redirect(substr($code, 9));
} elseif (strlen($code)) {
// Check if URL is relative
$url_parts = parse_url($code);
......
if (false === $res) {
// Last chance -- redirect
header('Location: '.t3lib_div::locationHeaderUrl($code));
t3lib_div::redirect($code);
} else {
$forwardHeaders = array( // Forward these response headers to the client
typo3/sysext/cms/layout/db_layout.php (Arbeitskopie)
}
$url = $BACK_PATH.'alt_doc.php?edit[tt_content]['.implode(',',$idListA).']=edit&returnUrl='.rawurlencode($this->local_linkThisScript(array('edit_record'=>'')));
header('Location: '.t3lib_div::locationHeaderUrl($url));
exit;
t3lib_div::redirect($url);
}
// If the former record edited was the creation of a NEW record, this will look up the created records uid:
typo3/sysext/impexp/app/index.php (Arbeitskopie)
$import->importData($this->id);
t3lib_BEfunc::getSetUpdateSignal('updatePageTree');
} else {
header('Location: '.t3lib_div::locationHeaderUrl($emURL));
exit;
t3lib_div::redirect($emURL);
}
}
typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
* @return [type] ...
*/
function outputExitBasedOnStep($content) {
if ($this->step) {
Header('Location: '.t3lib_div::locationHeaderUrl($this->action));
if ($this->step) {
t3lib_div::redirect($this->action);
} else {
$this->output($this->outputWrapper($content));
}
    (1-1/1)