We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1fa0d commit d5f2547Copy full SHA for d5f2547
go/ql/src/experimental/CWE-525/WebCacheDeception.ql
@@ -25,5 +25,5 @@ where
25
// Find the corresponding expression for the predecessor
26
get.hasQualifiedName("net/http", "Header", "Set") and
27
call = get.getACall() and
28
- call.getArgument(0).toString().matches("\"Cache-Control\"")
+ call.getArgument(0).getStringValue() = "\"Cache-Control\""
29
select httpHandleFuncCall.getArgument(0), call.getArgument(0)
0 commit comments