mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Input from Review
This commit is contained in:
@@ -23,12 +23,10 @@ is called on the URL, potentially leading to a local file access.</p>
|
||||
</example>
|
||||
|
||||
<references>
|
||||
<ul>
|
||||
<li>Java Platform, Standard Edition 11, API Specification:
|
||||
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URL.html">
|
||||
Class URL</a>.
|
||||
</li>
|
||||
</ul>
|
||||
<!-- LocalWords: CWE -->
|
||||
</references>
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ class URLConstructor extends ClassInstanceExpr {
|
||||
Expr stringArg() {
|
||||
// Query only in URL's that were constructed by calling the single parameter string constructor.
|
||||
this.getConstructor().getNumberOfParameters() = 1 and
|
||||
this.getConstructor().getParameter(0).getType() instanceof TypeString
|
||||
and result = this.getArgument(0)
|
||||
this.getConstructor().getParameter(0).getType() instanceof TypeString and
|
||||
result = this.getArgument(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user