Skip to content

Commit

Permalink
Fixed error about mixed bytes and non-bytes in path components when p…
Browse files Browse the repository at this point in the history
…re-compiling vectorscan DB
  • Loading branch information
akenion committed Sep 27, 2024
1 parent 67159f5 commit f382a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordfence/cli/malwarescan/malwarescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ def filter_precompiled(precompiled):
precompiled = compile_database()
with tempfile.NamedTemporaryFile(
dir=os.path.dirname(database_path),
prefix='compiling.',
suffix='.db',
prefix=b'compiling.',
suffix=b'.db',
delete=False
) as file:
file.write(pickle.dumps(precompiled))
Expand Down

0 comments on commit f382a13

Please sign in to comment.