Project

General

Profile

Actions

Bug #16637

closed

recs['clear_all'] should be clear as an array

Added by Bjrn Kraus about 18 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-10-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The FE User Auth class (typo3/sysext/cms/tslib/class.tslib_feuserauth.php) has the possibility to automatically store form values in the session if they are submitted in the recs array. There is a switch in the record_registration() function to reset this array ($this->setKey('ses','recs','');) any time "recs[clear_all]" is submitted. If this is done and you start posting form values again in the recs array the function will throw a fatal error 'cause the result of $this->getKey('ses','recs') is a string and the following loops can't handle $recs_array (= '') as an array.

The (simple) solution is to change the reset into "$this->setKey('ses','recs',array());". Now $recs_array is an empty array and the array functions won't fail.

(issue imported from #M4367)


Files

patch.diff (531 Bytes) patch.diff Administrator Admin, 2006-10-18 15:08
4367_feusersession_arraycheck.diff (839 Bytes) 4367_feusersession_arraycheck.diff Administrator Admin, 2008-03-04 12:13
4367_v1.diff (718 Bytes) 4367_v1.diff Administrator Admin, 2009-02-24 17:31
T3X_4367-0_0_0-z-200902271456.t3x (2.85 KB) T3X_4367-0_0_0-z-200902271456.t3x Administrator Admin, 2009-02-27 14:58

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #19703: False initialization in TYPO3 basket function record_registration() in class.tslib_feuserauth.phpClosedChristian Kuhn2008-12-15

Actions
Actions

Also available in: Atom PDF