mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 23:54:44 +00:00
Fix viruscheck plugin
The clamav interface needs bytes, not unicode. It would be nice if we had tests for this code.
This commit is contained in:
parent
1e35530f9d
commit
bb53aaa621
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class VirusCheck(_ContentPlugin):
|
|||
|
||||
def check(self, url_data):
|
||||
"""Try to ask GeoIP database for country info."""
|
||||
data = url_data.get_content()
|
||||
data = url_data.get_raw_content()
|
||||
infected, errors = scan(data, self.clamav_conf)
|
||||
if infected or errors:
|
||||
for msg in infected:
|
||||
|
|
|
|||
Loading…
Reference in a new issue