CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #33953

Wrong regexp for umlauts validation

Added by Viktor Livakivskyi over 1 year ago. Updated over 1 year ago.

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

Revision 59002
Added by Alexander Grein over 1 year ago

Fix for Bug #33953: Wrong regexp for umlauts validation

Revision e7f24db0
Added by Alexander Grein over 1 year ago

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.

Also available in: Atom PDF