Skip to content

Commit 7877082

Browse files
committed
fix tests code issues and expected file
1 parent 1ed4d2a commit 7877082

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
import go
1414

1515
from
16-
DataFlow::CallNode httpHandleFuncCall, DataFlow::CallNode call, DataFlow::Node predecessor,
17-
Method get
16+
DataFlow::CallNode httpHandleFuncCall, DataFlow::CallNode call, Method get
1817
where
1918
httpHandleFuncCall.getTarget().hasQualifiedName("net/http", "HandleFunc") and
2019
httpHandleFuncCall.getArgument(0).getType().getUnderlyingType() instanceof StringType and

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

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| WebCacheDeceptionBad.go:14:18:14:31 | "/adminusers/" | WebCacheDeceptionGood.go:68:19:68:33 | "Cache-Control" |
1+
| WebCacheDeceptionBad.go:14:18:14:31 | "/adminusers/" | WebCacheDeceptionGood.go:68:19:68:33 | "Cache-Control" |

0 commit comments

Comments
 (0)