Bug #3275

ValidatorResolver can't parse validator arguments containing round brackets

Added by Robert Lemke over 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
Validation
Start date:
2009-05-12
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

Description

Currently validation arguments defined in @validate annotations cannot contain round brackets ')' because they'd be interpreted as the end of an argument expression. Additionally they can't contain commas and probably not even equal signs.

Make sure that either special characters can be escaped or that the values of the validation arguments have to be put into quotes.

Especially important for the RegularExpressionValidator.

Associated revisions

Revision abc7990d (diff)
Added by Karsten Dambekalns over 10 years ago

[FIX] FLOW3 (Validation): ValidatorResolver can now parse validator arguments containing round brackets, commas, equal signs, fixes #3275. The option values must be quoted for this to work (either single or double quotes will do).

History

#1 Updated by Robert Lemke over 10 years ago

  • Assignee deleted (Andreas Förthner)

#2 Updated by Robert Lemke over 10 years ago

  • Target version changed from 1.0 alpha 1 to 283

#3 Updated by Robert Lemke over 10 years ago

  • Priority changed from Should have to Must have
  • Target version changed from 283 to 1.0 alpha 2

#4 Updated by Karsten Dambekalns over 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns

#5 Updated by Karsten Dambekalns over 10 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2657.

Also available in: Atom PDF