mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 17:45:28 +00:00
fix template path bug, pass the filepath in executeroptions
This commit is contained in:
parent
e66821b49f
commit
b03a90df50
@ -52,6 +52,7 @@ func Parse(filePath string, preprocessor Preprocessor, options protocols.Execute
|
||||
}
|
||||
}
|
||||
defer reader.Close()
|
||||
options.TemplatePath = filePath
|
||||
template, err := ParseTemplateFromReader(reader, preprocessor, options)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user