Vulny-Code-Static-Analysis/vulns/xss.php

12 lines
277 B
PHP
Raw Normal View History

<html>
<?php
if (isset($_POST['mail'])){
$mail = $_POST['mail'];
2017-05-28 21:23:07 +00:00
print("<p>The mail ".$mail." has been registered in our database.</p>");
}
else{
echo "<p>The mail ".$_GET['mail']." has been registered in our database.</p>";
}
?>
</html>