@@ -15,22 +15,17 @@ private import semmle.python.ApiGraphs
15
15
*/
16
16
private module Ldap {
17
17
/**
18
- * The name of an `ldap` method used to execute a query.
18
+ * The execution of an `ldap` query.
19
19
*
20
20
* See https://www.python-ldap.org/en/python-ldap-3.3.0/reference/ldap.html#functions
21
21
*/
22
- private string ldapQueryMethodName ( ) {
23
- result in [ "search" , "search_s" , "search_st" , "search_ext" , "search_ext_s" ]
24
- }
25
-
26
- /** The execution of an `ldap` query. */
27
22
private class LdapQueryExecution extends DataFlow:: CallCfgNode , LdapExecution:: Range {
28
23
LdapQueryExecution ( ) {
29
24
this =
30
25
API:: moduleImport ( "ldap" )
31
26
.getMember ( "initialize" )
32
27
.getReturn ( )
33
- .getMember ( ldapQueryMethodName ( ) )
28
+ .getMember ( [ "search" , "search_s" , "search_st" , "search_ext" , "search_ext_s" ] )
34
29
.getACall ( )
35
30
}
36
31
@@ -42,7 +37,7 @@ private module Ldap {
42
37
}
43
38
44
39
/**
45
- * A class to find calls to `ldap.dn.escape_dn_chars`.
40
+ * A call to `ldap.dn.escape_dn_chars`.
46
41
*
47
42
* See https://github.com/python-ldap/python-ldap/blob/7ce471e238cdd9a4dd8d17baccd1c9e05e6f894a/Lib/ldap/dn.py#L17
48
43
*/
@@ -59,7 +54,7 @@ private module Ldap {
59
54
}
60
55
61
56
/**
62
- * A class to find calls to `ldap.filter.escape_filter_chars`.
57
+ * A call to `ldap.filter.escape_filter_chars`.
63
58
*
64
59
* See https://www.python-ldap.org/en/python-ldap-3.3.0/reference/ldap-filter.html#ldap.filter.escape_filter_chars
65
60
*/
0 commit comments