mirror of
https://github.com/projectdiscovery/nuclei
synced 2026-06-08 16:50:47 +00:00
d9452011fc
Prev, the template exclusion logic checked if the full file path contained any of the known miscellaneous directory names (e.g., helpers, .git). This caused false positives when valid templates were stored in paths where a parent directory matched one of these names (e.g., /path/to/somewhere/that/has/helpers/dir/name/). This commit introduces `IsTemplateWithRoot`, which checks for excluded directories relative to a provided root directory. It splits the relative path into components. Signed-off-by: Dwi Siswanto <git@dw1.io>