Browse Source

Merge pull request #1 from RiversideRocks/main

Prevent XSS
main
Kamal Nasser 5 years ago committed by GitHub
parent
commit
54d4a727f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      index.php

2
index.php

@ -7,7 +7,7 @@ header('Content-Type: text/plain');
$text = "Set a message by adding ?message=<message here> to the URL"; $text = "Set a message by adding ?message=<message here> to the URL";
if(isset($_GET['message']) && $_GET['message'] != '') { if(isset($_GET['message']) && $_GET['message'] != '') {
$text = $_GET['message']; $text = htmlspecialchars($_GET['message']);
} }
$cow = Farm::create(\Cowsayphp\Farm\Cow::class); $cow = Farm::create(\Cowsayphp\Farm\Cow::class);

Loading…
Cancel
Save