mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Address PR comments.
This commit is contained in:
@@ -36,7 +36,7 @@ class ResponseSplittingConfig extends TaintTracking::Configuration {
|
|||||||
ma.getMethod().hasQualifiedName("java.lang", "String", methodName) and
|
ma.getMethod().hasQualifiedName("java.lang", "String", methodName) and
|
||||||
target = ma.getArgument(0) and
|
target = ma.getArgument(0) and
|
||||||
(
|
(
|
||||||
methodName = "replace" and target.getIntValue() = [10, 13]
|
methodName = "replace" and target.getIntValue() = [10, 13] // 10 == "\n", 13 == "\r"
|
||||||
or
|
or
|
||||||
methodName = "replaceAll" and
|
methodName = "replaceAll" and
|
||||||
target.getStringValue().regexpMatch(".*([\n\r]|\\[\\^[^\\]\r\n]*\\]).*")
|
target.getStringValue().regexpMatch(".*([\n\r]|\\[\\^[^\\]\r\n]*\\]).*")
|
||||||
|
|||||||
Reference in New Issue
Block a user