mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:05:26 +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()
|
defer reader.Close()
|
||||||
|
options.TemplatePath = filePath
|
||||||
template, err := ParseTemplateFromReader(reader, preprocessor, options)
|
template, err := ParseTemplateFromReader(reader, preprocessor, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user