src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.injectionSql.html

branch
eric7
changeset 10479
856476537696
parent 10259
b51dfacef37f
child 10648
57b0f5657250
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.injectionSql</h1> 9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.injectionSql</h1>
10
11 <p> 10 <p>
12 Module implementing a check for SQL injection. 11 Module implementing a check for SQL injection.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>SIMPLE_SQL_RE</td></tr> 16 <tr><td>SIMPLE_SQL_RE</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22 <tr><td>None</td></tr> 21 <tr><td>None</td></tr>
23 </table> 22 </table>
23
24 <h3>Functions</h3> 24 <h3>Functions</h3>
25
26 <table> 25 <table>
27
28 <tr> 26 <tr>
29 <td><a href="#_checkString">_checkString</a></td> 27 <td><a href="#_checkString">_checkString</a></td>
30 <td>Function to check a given string against the list of search patterns.</td> 28 <td>Function to check a given string against the list of search patterns.</td>
31 </tr> 29 </tr>
32 <tr> 30 <tr>
40 <tr> 38 <tr>
41 <td><a href="#getChecks">getChecks</a></td> 39 <td><a href="#getChecks">getChecks</a></td>
42 <td>Public method to get a dictionary with checks handled by this module.</td> 40 <td>Public method to get a dictionary with checks handled by this module.</td>
43 </tr> 41 </tr>
44 </table> 42 </table>
43
45 <hr /> 44 <hr />
46 <hr /> 45 <hr />
47 <a NAME="_checkString" ID="_checkString"></a> 46 <a NAME="_checkString" ID="_checkString"></a>
48 <h2>_checkString</h2> 47 <h2>_checkString</h2>
49 <b>_checkString</b>(<i>data</i>) 48 <b>_checkString</b>(<i>data</i>)
50
51 <p> 49 <p>
52 Function to check a given string against the list of search patterns. 50 Function to check a given string against the list of search patterns.
53 </p> 51 </p>
52
54 <dl> 53 <dl>
55 54
56 <dt><i>data</i> (str)</dt> 55 <dt><i>data</i> (str)</dt>
57 <dd> 56 <dd>
58 string data to be checked 57 string data to be checked
74 <hr /> 73 <hr />
75 <hr /> 74 <hr />
76 <a NAME="_evaluateAst" ID="_evaluateAst"></a> 75 <a NAME="_evaluateAst" ID="_evaluateAst"></a>
77 <h2>_evaluateAst</h2> 76 <h2>_evaluateAst</h2>
78 <b>_evaluateAst</b>(<i>node</i>) 77 <b>_evaluateAst</b>(<i>node</i>)
79
80 <p> 78 <p>
81 Function to analyze the given ast node. 79 Function to analyze the given ast node.
82 </p> 80 </p>
81
83 <dl> 82 <dl>
84 83
85 <dt><i>node</i> (ast.Constant)</dt> 84 <dt><i>node</i> (ast.Constant)</dt>
86 <dd> 85 <dd>
87 ast node to be analyzed 86 ast node to be analyzed
104 <hr /> 103 <hr />
105 <hr /> 104 <hr />
106 <a NAME="checkHardcodedSqlExpressions" ID="checkHardcodedSqlExpressions"></a> 105 <a NAME="checkHardcodedSqlExpressions" ID="checkHardcodedSqlExpressions"></a>
107 <h2>checkHardcodedSqlExpressions</h2> 106 <h2>checkHardcodedSqlExpressions</h2>
108 <b>checkHardcodedSqlExpressions</b>(<i>reportError, context, config</i>) 107 <b>checkHardcodedSqlExpressions</b>(<i>reportError, context, config</i>)
109
110 <p> 108 <p>
111 Function to check for SQL injection. 109 Function to check for SQL injection.
112 </p> 110 </p>
111
113 <dl> 112 <dl>
114 113
115 <dt><i>reportError</i> (func)</dt> 114 <dt><i>reportError</i> (func)</dt>
116 <dd> 115 <dd>
117 function to be used to report errors 116 function to be used to report errors
129 <hr /> 128 <hr />
130 <hr /> 129 <hr />
131 <a NAME="getChecks" ID="getChecks"></a> 130 <a NAME="getChecks" ID="getChecks"></a>
132 <h2>getChecks</h2> 131 <h2>getChecks</h2>
133 <b>getChecks</b>(<i></i>) 132 <b>getChecks</b>(<i></i>)
134
135 <p> 133 <p>
136 Public method to get a dictionary with checks handled by this module. 134 Public method to get a dictionary with checks handled by this module.
137 </p> 135 </p>
136
138 <dl> 137 <dl>
139 <dt>Return:</dt> 138 <dt>Return:</dt>
140 <dd> 139 <dd>
141 dictionary containing checker lists containing checker function and 140 dictionary containing checker lists containing checker function and
142 list of codes 141 list of codes

eric ide

mercurial