Welcome Guest, Not a member yet? Register   Sign In
xss_clean() truncating data
#5

(08-28-2020, 09:12 AM)jreklund Wrote: XSS protection are only supposed to be done on output (rendering) not input (saving to database).
Filtering on the other hand should be done input, checking that you are only accepting numbers etc. from the user.

And on output, you are showing it as is? What are you doing with that <range> field?
It is just a simple value for one of the field.
I want to achieve , Whatever I have placed on UI like 

 '<value_range>Test</value_range>'

Should keep same but because of xss_clean() my values are getting altered.
Reply


Messages In This Thread
RE: xss_clean() truncating data - by jreklund - 08-27-2020, 12:36 PM
RE: xss_clean() truncating data - by jreklund - 08-28-2020, 09:12 AM
RE: xss_clean() truncating data - by [email protected] - 08-31-2020, 01:19 AM
RE: xss_clean() truncating data - by jreklund - 08-31-2020, 10:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB