File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
go/ql/lib/semmle/go/security Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,6 @@ module SqlInjection {
25
25
*/
26
26
abstract class Sanitizer extends DataFlow:: Node { }
27
27
28
- /**
29
- * A numeric- or boolean-typed node, considered a sanitizer for sql injection.
30
- */
31
- class NumericOrBooleanSanitizer extends Sanitizer {
32
- NumericOrBooleanSanitizer ( ) {
33
- this .getType ( ) instanceof NumericType or this .getType ( ) instanceof BoolType
34
- }
35
- }
36
-
37
28
/**
38
29
* DEPRECATED: Use `Sanitizer` instead.
39
30
*
@@ -49,4 +40,13 @@ module SqlInjection {
49
40
50
41
/** A NoSql query, considered as a taint sink for SQL injection. */
51
42
class NoSqlQueryAsSink extends Sink instanceof NoSql:: Query { }
43
+
44
+ /**
45
+ * A numeric- or boolean-typed node, considered a sanitizer for sql injection.
46
+ */
47
+ class NumericOrBooleanSanitizer extends Sanitizer {
48
+ NumericOrBooleanSanitizer ( ) {
49
+ this .getType ( ) instanceof NumericType or this .getType ( ) instanceof BoolType
50
+ }
51
+ }
52
52
}
You can’t perform that action at this time.
0 commit comments