@@ -14,27 +14,27 @@ private import semmle.go.security.SafeUrlFlowCustomizations
1414module Beego {
1515 /**
1616 * 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`.
1818 */
1919 string modulePath ( ) {
2020 result =
2121 [
2222 "github.com/astaxie/beego" , "github.com/beego/beego" ,
23- "github.com/beego/beego/v2/server/web "
23+ "github.com/beego/beego/v2"
2424 ]
2525 }
2626
2727 /** Gets the path for the root package of beego. */
28- string packagePath ( ) { result = package ( modulePath ( ) , "" ) }
28+ string packagePath ( ) { result = package ( modulePath ( ) , [ "" , "server/web" ] ) }
2929
3030 /** 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" ] ) }
3232
3333 /** 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" ] ) }
3535
3636 /** 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" ] ) }
3838
3939 /**
4040 * `BeegoInput` sources of untrusted data.
@@ -365,4 +365,4 @@ module Beego {
365365 name in [ "Get" , "Items" ] and input .isReceiver ( ) and output .isResult ( 0 )
366366 }
367367 }
368- }
368+ }
0 commit comments