Skip to content

Commit fb3148a

Browse files
committed
autoformat
1 parent 785f335 commit fb3148a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

javascript/ql/src/experimental/Security/CWE-090/LdapInjection.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ import LdapInjection::LdapInjection
1717
from LdapInjectionConfiguration config, DataFlow::PathNode source, DataFlow::PathNode sink
1818
where config.hasFlowPath(source, sink)
1919
select sink.getNode(), source, sink, "$@ might include code from $@.",
20-
sink.getNode().(Sink).getQueryCall(), "LDAP query call", source.getNode(),
21-
"user-provided value"
20+
sink.getNode().(Sink).getQueryCall(), "LDAP query call", source.getNode(), "user-provided value"

javascript/ql/src/experimental/Security/CWE-090/LdapInjectionCustomizations.qll

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ module LdapInjection {
3939
* An LDAP filter for an API call that executes an operation against the LDAP server.
4040
*/
4141
class LdapjsSearchFilterAsSink extends Sink {
42-
LdapjsSearchFilterAsSink() {
43-
this instanceof LdapjsSearchFilter
44-
}
42+
LdapjsSearchFilterAsSink() { this instanceof LdapjsSearchFilter }
43+
4544
override DataFlow::InvokeNode getQueryCall() {
4645
result = this.(LdapjsSearchFilter).getQueryCall()
4746
}
@@ -51,12 +50,9 @@ module LdapInjection {
5150
* An LDAP DN argument for an API call that executes an operation against the LDAP server.
5251
*/
5352
class LdapjsDNArgumentAsSink extends Sink {
54-
LdapjsDNArgumentAsSink() {
55-
this instanceof LdapjsDNArgument
56-
}
57-
override DataFlow::InvokeNode getQueryCall() {
58-
result = this.(LdapjsDNArgument).getQueryCall()
59-
}
53+
LdapjsDNArgumentAsSink() { this instanceof LdapjsDNArgument }
54+
55+
override DataFlow::InvokeNode getQueryCall() { result = this.(LdapjsDNArgument).getQueryCall() }
6056
}
6157

6258
/**

0 commit comments

Comments
 (0)