mirror of https://github.com/daffainfo/nuclei.git
Fixed a bug in relative path detection
parent
b3c52d941f
commit
fc3d3ff3d3
|
@ -276,7 +276,7 @@ func (r *Runner) downloadReleaseAndUnzip(downloadURL string) error {
|
|||
|
||||
// isRelative checks if a given path is a relative path
|
||||
func (r *Runner) isRelative(path string) bool {
|
||||
if !strings.HasPrefix(path, "/") || !strings.Contains(path, ":\\") {
|
||||
if !strings.HasPrefix(path, "/") && !strings.Contains(path, ":\\") {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue