@@ -12,36 +12,36 @@ private import semmle.go.security.SafeUrlFlowCustomizations
12
12
* from the [Beego](https://github.com/beego/beego) package.
13
13
*/
14
14
module Beego {
15
- /** Gets the module path `github.com/astaxie/beego` or `github.com/beego/beego`. */
16
- string modulePath ( ) { result = [ "github.com/astaxie/beego" , "github.com/beego/beego" ] }
15
+ /** Gets the v1 module path `github.com/astaxie/beego` or `github.com/beego/beego`. */
16
+ string v1modulePath ( ) { result = [ "github.com/astaxie/beego" , "github.com/beego/beego" ] }
17
17
18
18
/** Gets the v2 module path `github.com/beego/beego/v2` */
19
19
string v2modulePath ( ) { result = "github.com/beego/beego/v2" }
20
20
21
21
/** Gets the path for the root package of beego. */
22
22
string packagePath ( ) {
23
- result = package ( modulePath ( ) , "" )
23
+ result = package ( v1modulePath ( ) , "" )
24
24
or
25
25
result = package ( v2modulePath ( ) , "server/web" )
26
26
}
27
27
28
28
/** Gets the path for the context package of beego. */
29
29
string contextPackagePath ( ) {
30
- result = package ( modulePath ( ) , "context" )
30
+ result = package ( v1modulePath ( ) , "context" )
31
31
or
32
32
result = package ( v2modulePath ( ) , "server/web/context" )
33
33
}
34
34
35
35
/** Gets the path for the logs package of beego. */
36
36
string logsPackagePath ( ) {
37
- result = package ( modulePath ( ) , "logs" )
37
+ result = package ( v1modulePath ( ) , "logs" )
38
38
or
39
39
result = package ( v2modulePath ( ) , "core/logs" )
40
40
}
41
41
42
42
/** Gets the path for the utils package of beego. */
43
43
string utilsPackagePath ( ) {
44
- result = package ( modulePath ( ) , "utils" )
44
+ result = package ( v1modulePath ( ) , "utils" )
45
45
or
46
46
result = package ( v2modulePath ( ) , "core/utils" )
47
47
}
0 commit comments