Project

General

Profile

Bug #17061 » bug_5104_stucki.diff

Administrator Admin, 2009-04-29 12:11

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie)
if ($conf['locationData']=='HTTP_POST_VARS' && isset($_POST['locationData'])) {
$locationData = t3lib_div::_POST('locationData');
} else {
$locationData = $GLOBALS['TSFE']->id.':'.$this->currentRecord; // locationData is [hte page id]:[tablename]:[uid of record]. Indicates on which page the record (from tablename with uid) is shown. Used to check access.
// locationData is [the page id]:[tablename]:[uid of record]. Indicates on which page the record (from tablename with uid) is shown. Used to check access.
if (isset($this->data['_LOCALIZED_UID'])) {
$locationData = $GLOBALS['TSFE']->id . ':' . str_replace($this->data['uid'], $this->data['_LOCALIZED_UID'], $this->currentRecord);
} else {
$locationData = $GLOBALS['TSFE']->id . ':' . $this->currentRecord;
}
}
$hiddenfields.='<input type="hidden" name="locationData" value="'.htmlspecialchars($locationData).'" />';
}
(2-2/2)