Update XSS_level2.php

This commit is contained in:
Ömer Faruk Şenyayla 2018-11-30 02:44:25 +03:00 committed by GitHub
parent d33d6565da
commit 62a90f45d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,9 @@
<div align="center">
<form method="GET" action="" name="form">
<p>Your name:<input type="text" name="username"></p>
<input type="submit" name="submit" value="Submit"></div>
<input type="submit" name="submit" value="Submit">
</form>
</div>
<?php
if (isset($_GET["username"])) {
$user = str_replace("<script>", "",$_GET["username"]);