Skip to content

Commit 7f5e5ff

Browse files
chanel-yMathiasVP
andauthored
Apply suggestions from code review
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 17f9c9a commit 7f5e5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

powershell/ql/src/queries/security/cwe-078/DoNotuseInvokeExpression.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<qhelp>
55
<overview>
66
<p>
7-
<code>Invoke-Expression</code> cmdlet should only be used as a last resort. In most scenarios, safer and more robust alternatives are available. Using Invoke-Expression can lead to arbitrary commands being executed</p>
7+
<code>Invoke-Expression</code> cmdlet should only be used as a last resort. In most scenarios, safer and more robust alternatives are available. Using <code>Invoke-Expression</code> can lead to arbitrary commands being executed</p>
88

99
</overview>
1010
<recommendation>
1111

12-
<p>Avoid using Invoke-Expression in your powershell code.</p>
12+
<p>Avoid using <code>Invoke-Expression</code> in your powershell code.</p>
1313

1414
<p>If you’re running some command and the command path has spaces in it, then you need the command invocation operator <code>&</code></p>
1515
</recommendation>

0 commit comments

Comments
 (0)