Skip to content

Commit 4d97c42

Browse files
committed
Remove debugging select on go-chi.ql
1 parent 501f617 commit 4d97c42

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

go/ql/src/experimental/CWE-525/WebCacheDeceptionGoChi.ql

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
* external/cwe/cwe-525
1111
*/
1212

13-
import go
13+
import go
1414

15-
from DataFlow::CallNode httpHandleFuncCall, ImportSpec importSpec
16-
where
17-
importSpec.getPath() = "github.com/go-chi/chi/v5" and
18-
httpHandleFuncCall.getCall().getArgument(0).toString().matches("%/*%") and
19-
not httpHandleFuncCall.getCall().getArgument(0).toString().matches("%$%") and
20-
importSpec.getFile() = httpHandleFuncCall.getFile()
21-
select httpHandleFuncCall.getCall().getArgument(0), importSpec,
22-
"Wildcard Endpoint used with " + httpHandleFuncCall.getCall().getArgument(0) + " in file: " +
23-
importSpec.getFile().getBaseName()
15+
from DataFlow::CallNode httpHandleFuncCall, ImportSpec importSpec
16+
where
17+
importSpec.getPath() = "github.com/go-chi/chi/v5" and
18+
httpHandleFuncCall.getCall().getArgument(0).toString().matches("%/*%") and
19+
not httpHandleFuncCall.getCall().getArgument(0).toString().matches("%$%") and
20+
importSpec.getFile() = httpHandleFuncCall.getFile()
21+
select httpHandleFuncCall.getCall().getArgument(0),
22+
"Wildcard Endpoint used with " + httpHandleFuncCall.getCall().getArgument(0) + " in file: " +
23+
importSpec.getFile().getBaseName()

0 commit comments

Comments
 (0)