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 ;
16import java .time .Duration ;
27import java .util .HashMap ;
38import 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 ;
811import org .apache .commons .io .FileUtils ;
912
1013class SupportedExternalApis {
@@ -30,4 +33,8 @@ public static void main(String[] args) throws Exception {
3033
3134 file .compareTo (file ); // supported neutral sink (compareTo)
3235 }
36+
37+ public static void doSendRedirect (HttpServletResponse req ) throws ServletException , IOException {
38+ req .sendRedirect ("myredirect" ); // supported sink (sendRedirect)
39+ }
3340}
You can’t perform that action at this time.
0 commit comments