Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e161c8 commit 812a5e5Copy full SHA for 812a5e5
1 file changed
go/ql/test/library-tests/semmle/go/frameworks/Beego/test.go
@@ -1,6 +1,7 @@
1
package test
2
3
import (
4
+ "encoding/json"
5
"github.com/astaxie/beego"
6
"github.com/astaxie/beego/context"
7
"github.com/astaxie/beego/logs"
@@ -9,7 +10,6 @@ import (
9
10
"mime/multipart"
11
"net/http"
12
"os"
- "encoding/json"
13
)
14
15
type subBindMe struct {
@@ -318,4 +318,4 @@ func requestBodySourceTest(ctx *context.Context, c *beego.Controller) {
318
json.Unmarshal(ctx.Input.RequestBody, &dat)
319
untrusted := dat["filepath"].(string)
320
c.SaveToFile("someReceviedFile", untrusted)
321
-}
+}
0 commit comments