简体   繁体   English

将FALSE设置为CodeIgniter XSS Clean对我不起作用

[英]Set FALSE to CodeIgniter XSS Clean doesn't work for me

If setted FALSE to an input field in CodeIgniter it still is removing some parts of value. 如果在CodeIgniter中将输入字段设置为FALSE,它仍然会删除某些值的部分。 Who can help me? 谁能帮我? (I'm Brazilian, my english is poor) (我是巴西人,我的英语很差)

(Why some people do a click -1 vote on my question?) (为什么有人在我的问题上点击-1投票?)

If the application/config/config.php setting for $config['global_xss_filtering'] is set to TRUE , then the second parameter of $this->input->post() (or get() , etc.) will NOT have any effect. 如果$config['global_xss_filtering']的application / config / config.php设置为TRUE ,那么$this->input->post() (或get()等)的第二个参数将不会有任何影响。 You must disable the global filtering for the second parameter to have any impact. 您必须禁用第二个参数的全局过滤才能产生任何影响。

Note that this has been brought up as an issue , and will hopefully be changed in the relatively near future. 请注意,这已成为一个问题 ,并有望在不久的将来进行更改。 We'll see, I guess. 我猜,我们会看到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM