Releases: sunspikes/clamav-validator
Releases · sunspikes/clamav-validator
v3.0.0: Remove validator overwrite (#63)
* Extract validation logic into own class * Deprecate the custom validator The is no need for a custom validator instance. It is bad practice for 3rd party packages to define rules this way. * Adapt service provider, install validation rule as "extension" Also, removed the custom resolver - the logic that is overwriting an application's validator instance. * Add test helper Helper is responsible for creating validator instance with desired validation rules... * Adapt unit tests * Remove IDE injected PHPDoc * Fix style
v2.9.1: Support PHP wrappers (e.g. data://) (#72)
* drop use of is_readable which isn't compatible with wrappers (https://www.php.net/manual/en/wrappers.php). * check stream instead of file
v2.9.0
v2.8.0
v2.7.0
v2.6.2
v2.6.1
v2.6.0: feat: make socket connect timeout configurable. (#47)
Co-authored-by: ProtossChrisTW <chris.lee@getoken.io> Co-authored-by: Krishnaprasad MG <sunspikes@gmail.com>
v2.5.0: Add a config setting for client exceptions (#51)
Exceptions are good for a developer, but can hide errors for end users. Example, user uploads a file that is too large for clamav (> 25Mb). ClamAV will close the stream once it hits it's own configured limit. Throwing an exception in this case will show the user a 500 internal error, instead of showing a useful message (the file size validation error). Resolves sunspikes/clamav-validator#50
v2.4.0: Ability to validate multiple files in one request (#36)
* * Make sure ClamavValidator can validate single as well as multiple files * Provide test cases for validating multiple files * Provide additional file without virus or error * * Code cosmetics after peer review. * Update README.md indicating that clamav-validator supports validating multiple files. Co-authored-by: guuske <guus.leeuw@itpassion.com> Co-authored-by: PHPGuus <php.guus@gmail.com>