mirror of
https://github.com/github/codeql.git
synced 2026-06-12 08:21:09 +02:00
8 lines
369 B
Java
8 lines
369 B
Java
public void doGet(HttpServletRequest request, HttpServletResponse response) {
|
|
String username = request.getParameter("username");
|
|
|
|
if (validator.isValidInput("HTTP parameter", username, "username", 20, false)) {
|
|
// GOOD: The input is sanitized before being written to the session.
|
|
request.getSession().setAttribute("username", username);
|
|
}
|
|
} |