Apply suggestions from review

Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
intrigus-lgtm
2020-03-20 13:55:31 +01:00
committed by intrigus
parent d6ff6b74c5
commit ec40cf0379
2 changed files with 4 additions and 4 deletions

View File

@@ -15,10 +15,10 @@ If user input must be included in an XPath expression, pre-compile the query and
references to include the user input.
</p>
<p>
For exmaple, when using the <code>github.com/moovweb/gokogiri</code> API, this can be done by creating a custom subtype of
For example, when using the <code>github.com/moovweb/gokogiri</code> API, this can be done by creating a custom subtype of
<code>xpath.VariableScope</code>, and implementing
<code>ResolveVariable(string,string)</code> to return the user provided data. This
custom scope can be specified when calling <code>SearchWithVariables(), EvalXPath() or EvalXPathAsBoolean()</code>.
custom scope can be specified when calling <code>SearchWithVariables()</code>, <code>EvalXPath()</code>, or <code>EvalXPathAsBoolean()</code>.
</p>
</recommendation>

View File

@@ -139,5 +139,5 @@ class GokogiriSink extends XPathInjectionSink {
from DataFlow::PathNode source, DataFlow::PathNode sink, XPathInjectionConfiguration c
where c.hasFlowPath(source, sink)
select sink.getNode(), source, sink, "$@ flows to here and is used in an XPath expression.",
source.getNode(), "User-provided value"
select sink.getNode(), source, sink, "$@ flows here and is used in an XPath expression.",
source.getNode(), "A user-provided value"