Update XSS_level2.php
This commit is contained in:
parent
d33d6565da
commit
62a90f45d7
|
@ -13,8 +13,9 @@
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<form method="GET" action="" name="form">
|
<form method="GET" action="" name="form">
|
||||||
<p>Your name:<input type="text" name="username"></p>
|
<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>
|
</form>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
if (isset($_GET["username"])) {
|
if (isset($_GET["username"])) {
|
||||||
$user = str_replace("<script>", "",$_GET["username"]);
|
$user = str_replace("<script>", "",$_GET["username"]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user