Skip to content

Commit

Permalink
fix: struts panic
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Dec 19, 2023
1 parent ac70f2b commit a3b4265
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## v1.5.0 (2023.12.19)
## v1.5.2 (2023.12.19)

## 新增

Expand Down
6 changes: 5 additions & 1 deletion grab/struts2.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ func (c *Struts2Crawler) GetUpdate(ctx context.Context, vulnLimit int) ([]*VulnI
// 构建完整的链接
fullLink := "https://cwiki.apache.org" + link

vuln, _ := c.getVulnInfoFromURL(ctx, fullLink)
vuln, err := c.getVulnInfoFromURL(ctx, fullLink)
if err != nil {
c.log.Error(err)
return
}
vuln.Title = title
vuln.UniqueKey = s2Id.FindString(title)
if vuln.UniqueKey == "" {
Expand Down

0 comments on commit a3b4265

Please sign in to comment.