Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit aad9ce0

Browse files
author
Max Schaefer
committed
Fix tests for OpenUrlRedirect.
1 parent 4e20266 commit aad9ce0

File tree

1 file changed

+1
-1
lines changed
  • ql/test/query-tests/Security/CWE-601/OpenUrlRedirect

1 file changed

+1
-1
lines changed

ql/test/query-tests/Security/CWE-601/OpenUrlRedirect/stdlib.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func serveStdlib() {
133133

134134
target := r.Form.Get("target")
135135
// GOOD: a check is done on the URL
136-
if isValidRedirectUri(target) {
136+
if isValidRedirect(target) {
137137
http.Redirect(w, r, target, 302)
138138
} else {
139139
// ...

0 commit comments

Comments
 (0)