Skip to content

Commit

Permalink
Merge pull request #1 from appills/appills-patch-2
Browse files Browse the repository at this point in the history
Add PHP short-hand echo example to echoed-requests test cases
  • Loading branch information
appills authored Dec 14, 2023
2 parents 65db589 + a6bb908 commit 1ec4258
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions php/lang/security/injection/echoed-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,10 @@ function doOK7() {
echo $safevar;
}

?>

<? // ruleid: echoed-request ?>
<?= $_GET['payload'] ?>

<? // ok: echoed-request ?>
<?= htmlentities($_GET['payload']) ?>

0 comments on commit 1ec4258

Please sign in to comment.