mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
260 B
Java
12 lines
260 B
Java
import org.apache.commons.lang3.StringEscapeUtils;
|
|
|
|
public class StringEscapeUtilsTest {
|
|
String taint() { return "tainted"; }
|
|
|
|
void sink(Object o) {}
|
|
|
|
void test() throws Exception {
|
|
sink(StringEscapeUtils.escapeJson(taint())); // $hasTaintFlow
|
|
}
|
|
}
|