mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Remove usage of .getASuccessor() in XSLT.qll
This commit is contained in:
@@ -41,12 +41,7 @@ module XSLTInjection {
|
||||
}
|
||||
|
||||
private predicate etreeXML(ControlFlowNode fromnode, CallNode tonode) {
|
||||
exists(CallNode call, AttrNode atr |
|
||||
atr = etree().getAReference().getASuccessor() and
|
||||
// XML(text, parser=None, base_url=None)
|
||||
atr.getName() = "XML" and
|
||||
atr = call.getFunction()
|
||||
|
|
||||
exists(CallNode call | call.getFunction().(AttrNode).getObject("XML").pointsTo(etree()) |
|
||||
call.getArg(0) = fromnode and
|
||||
call = tonode
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user