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

Commit b871f54

Browse files
author
Max Schaefer
committed
Fix frontend error in ql/test/query-tests/Security/CWE-079.
1 parent 7773828 commit b871f54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ql/test/query-tests/Security/CWE-079

ql/test/query-tests/Security/CWE-079/tst.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func serve9(log io.Writer) {
6565
r.ParseForm()
6666
username := r.Form.Get("username")
6767
// OK: not a ResponseWriter
68-
log.Write(username)
68+
log.Write([]byte(username))
6969
})
7070
http.ListenAndServe(":80", nil)
7171
}

0 commit comments

Comments
 (0)