Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions jj-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
public class OkTestLog3 {
private final static Logger log = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);

@Override
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpServletReq = (HttpServletRequest) request;
String param = httpServletReq.getParameter("param");
String cleanParam = Jsoup.clean(param, Whitelist.basic);
// ok: crlf-injection-logs-deepsemgrep-sanitizer-copy
log.log(log.getLevel(), cleanParam);
}
}