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 00cc430 commit 8283d30Copy full SHA for 8283d30
go/ql/src/Security/CWE-079/StoredXss.go
@@ -2,12 +2,12 @@ package main
2
3
import (
4
"io"
5
- "io/ioutil"
6
"net/http"
+ "os"
7
)
8
9
func ListFiles(w http.ResponseWriter, r *http.Request) {
10
- files, _ := ioutil.ReadDir(".")
+ files, _ := os.ReadDir(".")
11
12
for _, file := range files {
13
io.WriteString(w, file.Name()+"\n")
go/ql/src/Security/CWE-079/StoredXssGood.go
@@ -3,12 +3,12 @@ package main
"html"
func ListFiles1(w http.ResponseWriter, r *http.Request) {
14
io.WriteString(w, html.EscapeString(file.Name())+"\n")
0 commit comments