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 3854050 commit 2995b02Copy full SHA for 2995b02
1 file changed
python/ql/src/semmle/python/web/turbogears/TurboGears.qll
@@ -19,14 +19,10 @@ class TurboGearsControllerMethod extends Function {
19
TurboGearsControllerMethod() {
20
aTurboGearsControllerClass().getPyClass() = this.getScope() and
21
decorator = this.getADecorator().getAFlowNode() and
22
- /* Is decorated with @expose or @expose(path) */
+ /* Is decorated with @expose() or @expose(path) */
23
(
24
- decorator.(NameNode).getId() = "expose"
25
- or
26
decorator.(CallNode).getFunction().(NameNode).getId() = "expose"
27
or
28
- decorator.refersTo(ModuleObject::named("tg").getAttribute("expose"))
29
30
decorator.refersTo(_, ModuleObject::named("tg").getAttribute("expose"), _)
31
)
32
}
0 commit comments