autoformat

This commit is contained in:
Erik Krogh Kristensen
2020-09-02 20:55:33 +02:00
parent 785f335ab8
commit fb3148a7a8
2 changed files with 6 additions and 11 deletions

View File

@@ -17,5 +17,4 @@ import LdapInjection::LdapInjection
from LdapInjectionConfiguration config, DataFlow::PathNode source, DataFlow::PathNode sink
where config.hasFlowPath(source, sink)
select sink.getNode(), source, sink, "$@ might include code from $@.",
sink.getNode().(Sink).getQueryCall(), "LDAP query call", source.getNode(),
"user-provided value"
sink.getNode().(Sink).getQueryCall(), "LDAP query call", source.getNode(), "user-provided value"

View File

@@ -39,9 +39,8 @@ module LdapInjection {
* An LDAP filter for an API call that executes an operation against the LDAP server.
*/
class LdapjsSearchFilterAsSink extends Sink {
LdapjsSearchFilterAsSink() {
this instanceof LdapjsSearchFilter
}
LdapjsSearchFilterAsSink() { this instanceof LdapjsSearchFilter }
override DataFlow::InvokeNode getQueryCall() {
result = this.(LdapjsSearchFilter).getQueryCall()
}
@@ -51,12 +50,9 @@ module LdapInjection {
* An LDAP DN argument for an API call that executes an operation against the LDAP server.
*/
class LdapjsDNArgumentAsSink extends Sink {
LdapjsDNArgumentAsSink() {
this instanceof LdapjsDNArgument
}
override DataFlow::InvokeNode getQueryCall() {
result = this.(LdapjsDNArgument).getQueryCall()
}
LdapjsDNArgumentAsSink() { this instanceof LdapjsDNArgument }
override DataFlow::InvokeNode getQueryCall() { result = this.(LdapjsDNArgument).getQueryCall() }
}
/**