mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Update qldoc
This commit is contained in:
@@ -6,7 +6,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.ServletException;
|
||||
|
||||
public class SensitiveGetQuery4 extends HttpServlet {
|
||||
// BAD - Tests sending sensitive information in a GET request.
|
||||
// BAD - Tests retrieving non-sensitive tokens and sensitive tokens in a GET request.
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
||||
String username = getRequestParameter(request, "username");
|
||||
String token = getRequestParameter(request, "token");
|
||||
@@ -20,7 +20,7 @@ public class SensitiveGetQuery4 extends HttpServlet {
|
||||
return request.getParameter(paramName);
|
||||
}
|
||||
|
||||
// GOOD - Tests sending sensitive information in a POST request.
|
||||
// GOOD - Tests retrieving non-sensitive tokens and sensitive tokens in a POST request.
|
||||
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
|
||||
String username = getRequestParameter(request, "username");
|
||||
String token = getRequestParameter(request, "token");
|
||||
|
||||
Reference in New Issue
Block a user