File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
java/ql/test/query-tests/Telemetry/SupportedExternalApis Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ import java .io .File ;
2
+ import java .io .FileWriter ;
3
+ import java .io .InputStream ;
4
+ import java .io .IOException ;
5
+ import java .net .URL ;
1
6
import java .time .Duration ;
2
7
import java .util .HashMap ;
3
8
import java .util .Map ;
4
- import java .io .InputStream ;
5
- import java .net .URL ;
6
- import java .io .File ;
7
- import java .io .FileWriter ;
9
+ import javax .servlet .http .HttpServletResponse ;
10
+ import javax .servlet .ServletException ;
8
11
import org .apache .commons .io .FileUtils ;
9
12
10
13
class SupportedExternalApis {
@@ -30,4 +33,8 @@ public static void main(String[] args) throws Exception {
30
33
31
34
file .compareTo (file ); // supported neutral sink (compareTo)
32
35
}
36
+
37
+ public static void doSendRedirect (HttpServletResponse req ) throws ServletException , IOException {
38
+ req .sendRedirect ("myredirect" ); // supported sink (sendRedirect)
39
+ }
33
40
}
You can’t perform that action at this time.
0 commit comments