Welcome Guest, Not a member yet? Register   Sign In
XSS_CLEAN Truncates Data

We have a user out in the internet posting data to our API written in CI 3.1.9.  The data is in this format:

ID=<some id>&KEY=<some key>&DATA=<very long json data>

In our controller we use:

$id = $this->input->post('id', true);
$key = $this->input->post('key/, true);
$data = $this->input->post('data', true);

After days of trying to figure out why we're not getting this JSON data, I figured out that for some reason XSS_CLEAN would completely erase the JSON data to empty.  I can re-produce this problem with $this->input->input_stream('data', true) or $this->security->xss_clean($data)

Not sure if this is bug or it breaks because JSON data is too long (2000 records of name,address,city,state,zip) ..

Messages In This Thread
XSS_CLEAN Truncates Data - by mikeh5522 - 11-09-2018, 08:58 AM
RE: XSS_CLEAN Truncates Data - by jreklund - 11-09-2018, 11:06 AM

Theme © iAndrew 2016 - Forum software by © MyBB