@@ -12,36 +12,36 @@ private import semmle.go.security.SafeUrlFlowCustomizations
1212 * from the [Beego](https://github.com/beego/beego) package.
1313 */
1414module 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" ] }
1717
1818 /** Gets the v2 module path `github.com/beego/beego/v2` */
1919 string v2modulePath ( ) { result = "github.com/beego/beego/v2" }
2020
2121 /** Gets the path for the root package of beego. */
2222 string packagePath ( ) {
23- result = package ( modulePath ( ) , "" )
23+ result = package ( v1modulePath ( ) , "" )
2424 or
2525 result = package ( v2modulePath ( ) , "server/web" )
2626 }
2727
2828 /** Gets the path for the context package of beego. */
2929 string contextPackagePath ( ) {
30- result = package ( modulePath ( ) , "context" )
30+ result = package ( v1modulePath ( ) , "context" )
3131 or
3232 result = package ( v2modulePath ( ) , "server/web/context" )
3333 }
3434
3535 /** Gets the path for the logs package of beego. */
3636 string logsPackagePath ( ) {
37- result = package ( modulePath ( ) , "logs" )
37+ result = package ( v1modulePath ( ) , "logs" )
3838 or
3939 result = package ( v2modulePath ( ) , "core/logs" )
4040 }
4141
4242 /** Gets the path for the utils package of beego. */
4343 string utilsPackagePath ( ) {
44- result = package ( modulePath ( ) , "utils" )
44+ result = package ( v1modulePath ( ) , "utils" )
4545 or
4646 result = package ( v2modulePath ( ) , "core/utils" )
4747 }
0 commit comments