Skip to content

Commit

Permalink
Update preventing-script-injection.md (#11666)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnotin authored Jan 14, 2025
1 parent 8dba7f0 commit befe02a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ statements, one of which is arbitrary code injected by the user.
pwnd!
```

### Use the `EscapeSingleQuotedStringContent()` method
#### Use the `EscapeSingleQuotedStringContent()` method

To protect against the user inserting their own single quote characters to exploit the function you
must use the `EscapeSingleQuotedStringContent()` API. This is a static public method of the PowerShell
Expand Down

0 comments on commit befe02a

Please sign in to comment.