mirror of https://github.com/CIRCL/lookyloo
fix: [MISP] Avoid exception when a hostname starts with "file"
parent
cc6d71e943
commit
67b0dc0b7e
|
@ -73,7 +73,7 @@ class MISPs(Mapping, AbstractModule):
|
||||||
directly to a MISP instance and it will create an event.'''
|
directly to a MISP instance and it will create an event.'''
|
||||||
public_domain = get_config('generic', 'public_domain')
|
public_domain = get_config('generic', 'public_domain')
|
||||||
event = MISPEvent()
|
event = MISPEvent()
|
||||||
if cache.url.startswith('file'):
|
if cache.url.startswith('file://'):
|
||||||
filename = cache.url.rsplit('/', 1)[-1]
|
filename = cache.url.rsplit('/', 1)[-1]
|
||||||
event.info = f'Lookyloo Capture ({filename})'
|
event.info = f'Lookyloo Capture ({filename})'
|
||||||
# Create file object as initial
|
# Create file object as initial
|
||||||
|
|
Loading…
Reference in New Issue