应用程序/控制器/welcome.php
<?php
class Welcome extends CI_Controller {
public function index()
{
if ($val = $this->input->post('test'))
{
var_dump($val);
}
else
{
$this->load->view('welcome_message');
}
}
}
应用程序/视图/weclome_message.php
<form action="" method="POST">
<input type="text" name="test" />
<input type="submit" />
</form>
XSS 过滤器打开的输出和输入 %9c:
string(1) "œ"
XSS 过滤器关闭的输出和输入 %9c:
string(3) "%9c"
我期望第一个与第二个具有相同的值。到底发生了什么?