Skip to content

Releases: sunspikes/clamav-validator

v3.0.0: Remove validator overwrite (#63)

01 Oct 07:42
9aa898e
Compare
Choose a tag to compare
* 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)

23 Jul 12:38
4d74b48
Compare
Choose a tag to compare
* 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

18 Mar 09:14
303ce51
Compare
Choose a tag to compare
Update supported laravel versions (#71)

v2.8.0

18 Mar 09:08
2696ff5
Compare
Choose a tag to compare
allow passing stream directly to scanner (#68)

* allow passing stream directly to scanner

* moved resource check out of getFilename method to validateFileWithClamAv

* removed double spaces

v2.7.0

09 Mar 09:55
0db1864
Compare
Choose a tag to compare
feat: add support for Laravel 10 (#65)

v2.6.2

19 Sep 06:50
3f98bd0
Compare
Choose a tag to compare
use filter_var for skip config (#60)

v2.6.1

18 May 09:53
7a765fa
Compare
Choose a tag to compare
fix: append vendor path for language file (#58)

v2.6.0: feat: make socket connect timeout configurable. (#47)

14 Mar 10:51
218602d
Compare
Choose a tag to compare
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)

28 Dec 11:26
e1494aa
Compare
Choose a tag to compare
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)

21 Apr 15:14
2cc3e5b
Compare
Choose a tag to compare
* * 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>