Skip to content

Commit

Permalink
fix bug with missing ExtractRelativeEndpoints() (#587)
Browse files Browse the repository at this point in the history
Co-authored-by: 0x123456789 <0x123456789>
  • Loading branch information
0x123456789 committed Sep 9, 2023
1 parent 6c440a4 commit 17fb4e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/engine/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ func scriptJSFileRegexParser(resp *navigation.Response) (navigationRequests []*n
return
}

endpointsItems := utils.ExtractJsluiceEndpoints(string(resp.Body))
endpointsItems := utils.ExtractRelativeEndpoints(string(resp.Body))
for _, item := range endpointsItems {
navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(item.Endpoint, resp.Resp.Request.URL.String(), "js", fmt.Sprintf("jsluice-%s", item.Type), resp))
navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(item, resp.Resp.Request.URL.String(), "js", "regex", resp))
}
return
}
Expand Down

0 comments on commit 17fb4e9

Please sign in to comment.