mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 15:45:27 +00:00
fix(disk): uses config.IsTemplate instead
fixes #6499 Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
parent
7d450507f7
commit
ca11a2fad6
@ -257,7 +257,7 @@ func (c *DiskCatalog) findDirectoryMatches(absPath string, processed map[string]
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if !d.IsDir() && config.GetTemplateFormatFromExt(path) != config.Unknown {
|
if !d.IsDir() && config.IsTemplate(path) {
|
||||||
if _, ok := processed[path]; !ok {
|
if _, ok := processed[path]; !ok {
|
||||||
results = append(results, path)
|
results = append(results, path)
|
||||||
processed[path] = struct{}{}
|
processed[path] = struct{}{}
|
||||||
@ -281,7 +281,7 @@ func (c *DiskCatalog) findDirectoryMatches(absPath string, processed map[string]
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if !d.IsDir() && config.GetTemplateFormatFromExt(path) != config.Unknown {
|
if !d.IsDir() && config.IsTemplate(path) {
|
||||||
if _, ok := processed[path]; !ok {
|
if _, ok := processed[path]; !ok {
|
||||||
results = append(results, path)
|
results = append(results, path)
|
||||||
processed[path] = struct{}{}
|
processed[path] = struct{}{}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user