fix: Use proper variable when the upload is a file

pull/937/head
Raphaël Vinot 2024-08-04 16:33:18 +02:00
parent 736b8717cf
commit 8dfa1304ef
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class MISPs(Mapping, AbstractModule): # type: ignore[type-arg]
redirects[-1].comment = f'Last redirect ({nb})'
if redirects:
prec_object = initial_url
prec_object = initial_obj
for u_object in redirects:
prec_object.add_reference(u_object, 'redirects-to')
prec_object = u_object