From af8001591ca07623280b3a13149d2fd325dca296 Mon Sep 17 00:00:00 2001 From: Joytide Date: Tue, 3 Dec 2024 10:53:36 +0100 Subject: [PATCH] Bugfix: file extension filter of spiderplus was misleading --- nxc/modules/spider_plus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nxc/modules/spider_plus.py b/nxc/modules/spider_plus.py index 6697c332..fd837b33 100755 --- a/nxc/modules/spider_plus.py +++ b/nxc/modules/spider_plus.py @@ -286,6 +286,8 @@ class SMBSpiderPlus: # Check file extension filter. _, file_extension = splitext(file_path) if file_extension: + if file_extension.startswith(".") and len(file_extension) > 1: + file_extension = file_extension[1:] self.stats["file_exts"].add(file_extension.lower()) if file_extension.lower() in self.exclude_exts: self.logger.info(f'The file "{file_path}" has an excluded extension.')