kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
MIT License
230 stars 68 forks source link

Multiple Spaces in File Name #130

Closed kylefarris closed 1 month ago

kylefarris commented 1 month ago

This PR fixes #125 by removing unnecessary filename sanitization in the scanFile method. Tests were added to verify files can still be found with spaces in them (without having to explicitly escape them) and they passed.

Thank you to @thelaughinglama for the bug report!