Project

General

Profile

Bug #14925 » bug-1374_02.patch

Administrator Admin, 2006-04-27 10:29

View differences:

typo3_src-4.0cvs/typo3/sysext/cms/tslib/class.tslib_fe.php 2006-04-27 10:26:58.000000000 +0200
*/
function checkDataSubmission() {
$ret = '';
if ($_POST['formtype_db'] || $_POST['formtype_mail']) {
$formtype_db = isset($_POST['formtype_db']) || ( isset($_POST['formtype_db_x']) && isset($_POST['formtype_db_y']) );
$formtype_mail = isset($_POST['formtype_mail']) || ( isset($_POST['formtype_mail_x']) && isset($_POST['formtype_mail_y']) );
if ( $formtype_db || $formtype_mail ) {
$refInfo = parse_url(t3lib_div::getIndpEnv('HTTP_REFERER'));
if (t3lib_div::getIndpEnv('TYPO3_HOST_ONLY')==$refInfo['host'] || $this->TYPO3_CONF_VARS['SYS']['doNotCheckReferer']) {
if ( $this->TYPO3_CONF_VARS['SYS']['doNotCheckReferer'] || t3lib_div::getIndpEnv('TYPO3_HOST_ONLY')==$refInfo['host'] ) {
if ($this->locDataCheck($_POST['locationData'])) {
if ($_POST['formtype_mail']) {
if ($formtype_mail) {
$ret = 'email';
} elseif ($_POST['formtype_db'] && is_array($_POST['data'])) {
} elseif ($formtype_db && isset($_POST['data']) && is_array($_POST['data'])) {
$ret = 'fe_tce';
}
$GLOBALS['TT']->setTSlogMessage('"Check Data Submission": Return value: '.$ret,0);
......
$EMAIL_VARS = t3lib_div::_POST();
$locationData = $EMAIL_VARS['locationData'];
unset($EMAIL_VARS['locationData']);
unset($EMAIL_VARS['formtype_mail']);
if ( isset($EMAIL_VARS['formtype_mail']) ){
unset($EMAIL_VARS['formtype_mail']);
} else {
unset( $EMAIL_VARS['formtype_mail_x'], $EMAIL_VARS['formtype_mail_y'] );
}
$integrityCheck = $this->TYPO3_CONF_VARS['FE']['strictFormmail'];
(2-2/2)