在Codeigniter中替换的百分比字符 [英] Percent character replaced in Codeigniter
问题描述
在Codeigniter我使用POST方法发送一个字符串%100
,它变成0
。我相信这是因为他们被视为编码,但他们不是。
有没有反正,取消这一点,同时仍保持安全高,因为这似乎是由 Security-> xss_clean()
和共同remove_invisible_characters()
In Codeigniter I'm sending a string using POST method as "%100"
and it becomes "0"
. I believe this is because they're being treated as encoded, but they're not.
Is there anyway to cancel this while still keeping security high, as this seems be caused by Security->xss_clean()
and Common remove_invisible_characters()
Just look for the remove_invisible_characters() function defined in the CodeIgniter system/core/Common.php which is called by the function CI_Input::_sanitize_globals(). It is responsible for the cleanup of certain escape sequences starting with "%". I prefer to override the input class to disable the automatic sanitization of the globals.
这篇关于在Codeigniter中替换的百分比字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!