Percent character replaced in Codeigniter

后端 未结 3 1935
再見小時候
再見小時候 2021-01-13 15:12

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 encode

3条回答
  •  日久生厌
    2021-01-13 15:52

    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.

提交回复
热议问题