Skip to content

Commit d5f2547

Browse files
aydinnyunusowen-mc
andauthored
Update go/ql/src/experimental/CWE-525/WebCacheDeception.ql
Co-authored-by: Owen Mansel-Chan <[email protected]>
1 parent fa1fa0d commit d5f2547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ where
2525
// Find the corresponding expression for the predecessor
2626
get.hasQualifiedName("net/http", "Header", "Set") and
2727
call = get.getACall() and
28-
call.getArgument(0).toString().matches("\"Cache-Control\"")
28+
call.getArgument(0).getStringValue() = "\"Cache-Control\""
2929
select httpHandleFuncCall.getArgument(0), call.getArgument(0)

0 commit comments

Comments
 (0)