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 {
2525 */
2626 abstract class Sanitizer extends DataFlow:: Node { }
2727
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-
3728 /**
3829 * DEPRECATED: Use `Sanitizer` instead.
3930 *
@@ -49,4 +40,13 @@ module SqlInjection {
4940
5041 /** A NoSql query, considered as a taint sink for SQL injection. */
5142 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+ }
5252}
You can’t perform that action at this time.
0 commit comments