[
https://issues.apache.org/jira/browse/TAPESTRY-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537193
]
Andreas Andreou commented on TAPESTRY-1857:
-------------------------------------------
Before revision 483838, we were using
public static final String PATTERN = "[EMAIL PROTECTED],6}$";
which (just like the suggested pattern) works very fast
but fails for single chars in local or domain part - our test case includes
[EMAIL PROTECTED], [EMAIL PROTECTED]
I'm wondering if:
a) such emails are valid (dojo's js validator says yes)
b) it's worth supporting, considering the DOS opportunities.
c) there's anything better
> Email validator's regexp pattern causes possibly infinite loop
> --------------------------------------------------------------
>
> Key: TAPESTRY-1857
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1857
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.3
> Reporter: Ulrich Stärk
> Assignee: Andreas Andreou
> Priority: Blocker
> Fix For: 4.1.4
>
> Attachments: patch.txt, Test.java
>
>
> The regex pattern used by the email validator causes a possibly infinite loop
> in java.util.regex.Pattern with some input.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]