Package: Validate
Define custom behavior for the default whitelist file extension validator.
Baseline behavior of this class is to tweak the default error messages.Messages are intentionally as detailed as possible. Note that it is theresponsibility of plugin writers to suppress or replace these messages ifnecessary for security reasons, e.g. if displaying it to the end user mightexpose the site to vulnerability probes.
Overrides default error message templates.
The extension of the file being validated
Constructor retrieves the whitelist from the database if no arguments are given.
Parameters: |
|
---|---|
Returns: | void |
Returns true if and only if the fileextension of $value is included in the set extension list.
Parameters: |
|
---|---|
Returns: | boolean |