mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
autoformat
This commit is contained in:
@@ -156,7 +156,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
|
||||
class StringSplitCall extends DataFlow::MethodCallNode {
|
||||
StringSplitCall() {
|
||||
this.getMethodName() = "split" and
|
||||
(getNumArgument() = [1,2] or getReceiver().mayHaveStringValue(_))
|
||||
(getNumArgument() = [1, 2] or getReceiver().mayHaveStringValue(_))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -287,7 +287,8 @@ module DomBasedXss {
|
||||
QueryPrefixSanitizer() {
|
||||
this = splitCall.getASubstringRead(0) and
|
||||
splitCall.getSeparator() = "?" and
|
||||
splitCall.getBaseString().getALocalSource() = [DOM::locationRef(), DOM::locationRef().getAPropertyRead("href")]
|
||||
splitCall.getBaseString().getALocalSource() =
|
||||
[DOM::locationRef(), DOM::locationRef().getAPropertyRead("href")]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user