We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MethodCallNode
MarkupSafe
1 parent d6e8faf commit c84658dCopy full SHA for c84658d
python/ql/src/semmle/python/frameworks/MarkupSafe.qll
@@ -67,13 +67,8 @@ private module MarkupSafeModel {
67
}
68
69
/** A string format with `markupsafe.Markup` as the format string. */
70
- class StringFormat extends Markup::InstanceSource, DataFlow::CallCfgNode {
71
- StringFormat() {
72
- exists(DataFlow::AttrRead attr | this.getFunction() = attr |
73
- attr.getAttributeName() = "format" and
74
- attr.getObject() = instance()
75
- )
76
- }
+ class StringFormat extends Markup::InstanceSource, DataFlow::MethodCallNode {
+ StringFormat() { this.calls(instance(), "format") }
77
78
79
/** Taint propagation for `markupsafe.Markup`. */
0 commit comments