Update XSS_level2.php

This commit is contained in:
Ömer Faruk Şenyayla 2018-11-30 01:06:56 +03:00 committed by GitHub
parent 7d3c0ed236
commit cdc2d2a969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,13 @@
</head>
<body>
<form method="GET" action="" name="form">
<p>Adınız:<input type="text" name="username"></p>
<p>Your name:<input type="text" name="username"></p>
<input type="submit" name="Gönder">
</form>
<?php
if (isset($_GET["username"])) {
$user = str_replace("<script>", "",$_GET["username"]);
echo "$user";
echo "Your name is "."$user";
}
?>