mirror of
https://github.com/mvt-project/mvt.git
synced 2026-11-25 13:20:54 +01:00
Fix mangled IOC file names when downloading indicators
This commit is contained in:
1 parent
4c97897638
commit
e44563f158
1 file changed
+1
-1
@@ -543,7 +543,7 @@ class IndicatorsUpdates:
|
||||
)
|
||||
return None
|
||||
|
||||
clean_file_name = ioc_url.lstrip("https://").replace("/", "_")
|
||||
clean_file_name = ioc_url.split("://", 1)[-1].replace("/", "_")
|
||||
ioc_path = os.path.join(MVT_INDICATORS_FOLDER, clean_file_name)
|
||||
|
||||
with open(ioc_path, "w", encoding="utf-8") as handle:
|
||||
|
||||
Reference in new issue
Block a user