Bug #33953
Wrong regexp for umlauts validation
| Status: | Resolved | Start date: | 2012-02-15 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Alexander Grein | % Done: | 0% |
|
| Category: | Frontend Plugin | |||
| Target version: | 1.7.0 (Fork) | |||
| Votes: | 0 |
Description
Hi, powermail authors.
Recently I found an issue in validator, which validates umlaut symbols. While JS validation passes, php validation fails, and user can't submit any umlaut symbol.
Line 310 of pi1/class.tx_powermail_mandatory.php contains this regexp: '/^[a-zA-Z\u00C0-\u00FF\s]+$/', but /u escape sequence is not supported by PCRE according to this article: http://www.php.net/manual/en/reference.pcre.pattern.differences.php
So, it should be substituted with this: '/^[a-zA-Z\x{00C0}-\x{00FF}\s]+$/'
Same for line 315.
Using current trunk version of powermail.
Associated revisions
Fix for Bug #33953: Wrong regexp for umlauts validation
Fix for Bug #33953: Wrong regexp for umlauts validation
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/powermail/trunk@59002 735d13b6-9817-0410-8766-e36946ffe9aa
History
Updated by Alexander Grein over 1 year ago
- Status changed from New to Resolved
- Target version set to 1.7.0 (Fork)
Fixed in latest trunk.