Skip to content

Commit 24e406d

Browse files
committed
Documentation: Fix typo
in dataflow documentation for C#
1 parent 23d994a commit 24e406d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/codeql/codeql-language-guides/analyzing-data-flow-in-csharp.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Analyzing data flow in C#
44
=========================
55

6-
You can use CodeQL to track the flow of data through a C# program to its use.
6+
You can use CodeQL to track the flow of data through a C# program to its use.
77

88
About this article
99
------------------
@@ -216,7 +216,7 @@ Flow sources
216216

217217
The data flow library contains some predefined flow sources. The class ``PublicCallableParameterFlowSource`` (defined in module ``semmle.code.csharp.dataflow.flowsources.PublicCallableParameter``) represents data flow from public parameters, which is useful for finding security problems in a public API.
218218

219-
The class ``RemoteSourceFlow`` (defined in module ``semmle.code.csharp.dataflow.flowsources.Remote``) represents data flow from remote network inputs. This is useful for finding security problems in networked services.
219+
The class ``RemoteFlowSource`` (defined in module ``semmle.code.csharp.dataflow.flowsources.Remote``) represents data flow from remote network inputs. This is useful for finding security problems in networked services.
220220

221221
Example
222222
~~~~~~~
@@ -251,7 +251,7 @@ Class hierarchy
251251

252252
- ``PublicCallableParameter`` - a parameter to a public method/callable in a public class.
253253

254-
- ``RemoteSourceFlow`` - data flow from network/remote input.
254+
- ``RemoteFlowSource`` - data flow from network/remote input.
255255

256256
- ``AspNetRemoteFlowSource`` - data flow from remote ASP.NET user input.
257257

@@ -437,11 +437,11 @@ Exercise 2
437437
438438
class Configuration extends DataFlow::Configuration {
439439
Configuration() { this="String to System.Uri" }
440-
440+
441441
override predicate isSource(DataFlow::Node src) {
442442
src.asExpr().hasValue()
443443
}
444-
444+
445445
override predicate isSink(DataFlow::Node sink) {
446446
exists(Call c | c.getTarget().(Constructor).getDeclaringType().hasQualifiedName("System.Uri")
447447
and sink.asExpr()=c.getArgument(0))
@@ -458,7 +458,7 @@ Exercise 3
458458
.. code-block:: ql
459459
460460
class EnvironmentVariableFlowSource extends DataFlow::ExprNode {
461-
EnvironmentVariableFlowSource() {
461+
EnvironmentVariableFlowSource() {
462462
this.getExpr().(MethodCall).getTarget().hasQualifiedName("System.Environment.GetEnvironmentVariable")
463463
}
464464
}
@@ -471,18 +471,18 @@ Exercise 4
471471
import csharp
472472
473473
class EnvironmentVariableFlowSource extends DataFlow::ExprNode {
474-
EnvironmentVariableFlowSource() {
474+
EnvironmentVariableFlowSource() {
475475
this.getExpr().(MethodCall).getTarget().hasQualifiedName("System.Environment.GetEnvironmentVariable")
476476
}
477477
}
478478
479479
class Configuration extends DataFlow::Configuration {
480480
Configuration() { this="Environment to System.Uri" }
481-
481+
482482
override predicate isSource(DataFlow::Node src) {
483483
src instanceof EnvironmentVariableFlowSource
484484
}
485-
485+
486486
override predicate isSink(DataFlow::Node sink) {
487487
exists(Call c | c.getTarget().(Constructor).getDeclaringType().hasQualifiedName("System.Uri")
488488
and sink.asExpr()=c.getArgument(0))

0 commit comments

Comments
 (0)