Update XSS_level3.php
This commit is contained in:
parent
62a90f45d7
commit
89c561f881
|
@ -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 = preg_replace("/<(.*)[S,s](.*)[C,c](.*)[R,r](.*)[I,i](.*)[P,p](.*)[T,t]>/i", "", $_GET["username"]);
|
$user = preg_replace("/<(.*)[S,s](.*)[C,c](.*)[R,r](.*)[I,i](.*)[P,p](.*)[T,t]>/i", "", $_GET["username"]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user