fix: [MISP] Avoid exception when a hostname starts with "file"

pull/860/head
Raphaël Vinot 2024-01-08 13:28:56 +01:00
parent cc6d71e943
commit 67b0dc0b7e
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class MISPs(Mapping, AbstractModule):
directly to a MISP instance and it will create an event.'''
public_domain = get_config('generic', 'public_domain')
event = MISPEvent()
if cache.url.startswith('file'):
if cache.url.startswith('file://'):
filename = cache.url.rsplit('/', 1)[-1]
event.info = f'Lookyloo Capture ({filename})'
# Create file object as initial