Skip to content

Commit

Permalink
Naming convention fix for "pwn" to "edge" between frontend and backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Aug 29, 2024
1 parent 50666c3 commit f3157ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/analyze/html/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ $(function () {
(method.defaultenabled_f ? 'checked' : '') +
` id="` +
method.lookup +
`_f" name="pwn_` +
`_f" name="edge_` +
method.lookup +
`_f" autocomplete="off">`;
buttons +=
Expand All @@ -610,7 +610,7 @@ $(function () {
(method.defaultenabled_m ? 'checked' : '') +
` id="` +
method.lookup +
`_m" name="pwn_` +
`_m" name="edge_` +
method.lookup +
`_m" autocomplete="off">`;
buttons +=
Expand All @@ -622,7 +622,7 @@ $(function () {
(method.defaultenabled_l ? 'checked' : '') +
` id="` +
method.lookup +
`_l" name="pwn_` +
`_l" name="edge_` +
method.lookup +
`_l" autocomplete="off">`;
buttons +=
Expand Down
2 changes: 1 addition & 1 deletion modules/analyze/webservicefuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func (ws *webservice) AddAnalysisEndpoints(router gin.IRoutes) {
if len(potentialfilter) < 7 {
continue
}
if strings.HasPrefix(potentialfilter, "pwn_") {
if strings.HasPrefix(potentialfilter, "edge_") {
prefix := potentialfilter[4 : len(potentialfilter)-2]
suffix := potentialfilter[len(potentialfilter)-2:]
edge := engine.LookupEdge(prefix)
Expand Down

0 comments on commit f3157ab

Please sign in to comment.