#16637recs['clear_all'] should be clear as an array
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.