@@ -14,27 +14,27 @@ private import semmle.go.security.SafeUrlFlowCustomizations
14
14
module Beego {
15
15
/**
16
16
* Gets the module path `github.com/astaxie/beego` or `github.com/beego/beego`
17
- * or `github.com/beego/beego/v2/server/web `.
17
+ * or `github.com/beego/beego/v2`.
18
18
*/
19
19
string modulePath ( ) {
20
20
result =
21
21
[
22
22
"github.com/astaxie/beego" , "github.com/beego/beego" ,
23
- "github.com/beego/beego/v2/server/web "
23
+ "github.com/beego/beego/v2"
24
24
]
25
25
}
26
26
27
27
/** Gets the path for the root package of beego. */
28
- string packagePath ( ) { result = package ( modulePath ( ) , "" ) }
28
+ string packagePath ( ) { result = package ( modulePath ( ) , [ "" , "server/web" ] ) }
29
29
30
30
/** Gets the path for the context package of beego. */
31
- string contextPackagePath ( ) { result = package ( modulePath ( ) , "context" ) }
31
+ string contextPackagePath ( ) { result = package ( modulePath ( ) , [ "context" , "server/web/context" ] ) }
32
32
33
33
/** Gets the path for the logs package of beego. */
34
- string logsPackagePath ( ) { result = package ( modulePath ( ) , "logs" ) }
34
+ string logsPackagePath ( ) { result = package ( modulePath ( ) , [ "logs" , "core/logs" ] ) }
35
35
36
36
/** Gets the path for the utils package of beego. */
37
- string utilsPackagePath ( ) { result = package ( modulePath ( ) , "utils" ) }
37
+ string utilsPackagePath ( ) { result = package ( modulePath ( ) , [ "utils" , "core/utils" ] ) }
38
38
39
39
/**
40
40
* `BeegoInput` sources of untrusted data.
@@ -365,4 +365,4 @@ module Beego {
365
365
name in [ "Get" , "Items" ] and input .isReceiver ( ) and output .isResult ( 0 )
366
366
}
367
367
}
368
- }
368
+ }
0 commit comments