We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MethodCallNode
MarkupSafe
1 parent d6e8faf commit c84658dCopy full SHA for c84658d
1 file changed
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