Issue Bug Closed

#91553Risk of non-unique field in DatePickerViewHelper

Tizian Schmidlin 06/02/20, 09:20 updated 12/22/20, 11:07

Description

Hello there,

I’ve discovered an issue with the DatePickerViewHelper.

The method to calculate the field id when rendering the datepicker uses this method to do so:
$id = 'field' . md5(uniqid());

This has some downsides since PHP on Windows does not use microseconds to create the uniqid by default. Therefore the second parameter to uniqid has to be set to ensure its uniqueness.

This bug can be traced back to very old versions of TYPO3.

Best Regards
Tizian

Reviews 2