(Multiple languages) Use slightly clearer wording

This commit is contained in:
Owen Mansel-Chan
2025-01-17 17:00:02 +00:00
parent 7ff9fcb445
commit da86668cfd
3 changed files with 3 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ Unfortunately this will only give the expression in the argument, not the values
and DataFlow::localFlow(DataFlow::exprNode(src), DataFlow::exprNode(call.getArgument(0)))
select src
Then we can make the source more specific, for example an access to a public parameter. This query finds instances where a public parameter is used to open a file:
To restrict sources to only an access to a public parameter, rather than arbitrary expressions, we can modify this query as follows:
.. code-block:: ql

View File

@@ -117,7 +117,7 @@ Unfortunately, this only gives the expression in the argument, not the values wh
DataFlow::localFlow(DataFlow::exprNode(src), DataFlow::exprNode(call.getArgument(0)))
select src
Then we can make the source more specific, for example an access to a parameter. This query finds where a public parameter is passed to ``os.Open(..)``:
To restrict sources to only parameters, rather than arbitrary expressions, we can modify this query as follows:
.. code-block:: ql

View File

@@ -122,7 +122,7 @@ Unfortunately, this only gives the expression in the argument, not the values wh
DataFlow::localFlow(DataFlow::exprNode(src), DataFlow::exprNode(call.getArgument(0)))
select src
Then we can make the source more specific, for example an access to a public parameter. This query finds where a public parameter is passed to ``new FileReader(..)``:
To restrict sources to only an access to a public parameter, rather than arbitrary expressions, we can modify this query as follows:
.. code-block:: ql