Bug #83775
closed
Breaking Change in Form Validator
Added by SICOR KDL GmbH about 6 years ago.
Updated about 6 years ago.
Description
Hello there,
at least in the 8.7.8 upgrade project I'm currently working on the "alphanumeric" Validator no longer allows whitespace, so eg. Name: "Hubert Maier" will now produce an error. This not only renders the validator as such more or less useless, it'll possibly also break currently working contact forms for TYPO3 8 with just a minor update.
As a sidenote, the "Back" Button on the confirmation step doesn't seem to work with 8.7.8 and Firefox either. Not sure if it ever did though.
- Status changed from New to Needs Feedback
There has been no change to the regulat expression in "\TYPO3\CMS\Extbase\Validation\Validator\AlphanumericValidator" since TYPO3 6.1
The expression used there is preg_match('/^[\pL\d]*$/u', $value) !== 1
- meaning it never allowed spaces since TYPO3 6.1
Could you please explain in more detail how and where you use that '"alphanumeric" Validator'?
I'm kinda puzzled. On the one hand you're right. I can see the behaviour in older 8.7.x sources now as well.
On the other hand, which validator would you use for a string like "main street 12a" or "Dr. Smith"? Isn't that exactly the usecase for an alphanumeric validator? letters, digits, whitespace and punctuation?
I use that in the yaml form wizard which was introduced in TYPO3 8.
Could you please open another issue regarding the back button? I am not happy with the current implementation.
Thx.
- Status changed from Needs Feedback to Closed
I close this ticket as this is not an issue of TYPO3. For your other question I suggest that you ask on Slack in #typo3-cms or on Stackoverflow. Thanks.
Also available in: Atom
PDF