Matthimatiker / MolComponents

Library with use-at-will architecture that extends the functionality of Zend Framework 1. Main features: Improved bootstrapping with lazy loading of resources, declaration of request parameters as argument in controller actions, advanced form creation and validation, mail templates, lightweight controller testing.
Other
2 stars 0 forks source link

Create Suffix-Validator #9

Closed Matthimatiker closed 12 years ago

Matthimatiker commented 12 years ago

Create validator that checks if a string ends with a suffix from a whitelist.

For example such a validator can be used to accept only mail addresses with known (white-listed) hosts.

Matthimatiker commented 12 years ago

Added Mol_Validate_Suffix validator that contains a list of suffixes and accepts only values that end with any suffix in the list.