lib/clamby/command.rb in clamby-1.6.6 vs lib/clamby/command.rb in clamby-1.6.8

- old
+ new

@@ -14,10 +14,10 @@ # Perform a ClamAV scan on the given path. def self.scan(path) return nil unless file_exists?(path) - args = [path, '--no-summary'] + args = [Shellwords.escape(path), '--no-summary'] if Clamby.config[:daemonize] args << '--fdpass' if Clamby.config[:fdpass] args << '--stream' if Clamby.config[:stream] end