📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
V

RSS InputFilterer::filter 'posint' data corruption

  • Thread starter Thread starter vbresults
  • Start date Start date
V

vbresults

Guest
Guest or Bot
Whenever an empty value is supplied to a POSINT field, InputFilterer::cleanInternal converts it to a 1 instead of omitting it. NUM, UNUM, and FLOAT have the same problem in the appropriate setting when the value is out of range.

I understand it's clamping the values, but this is opaque and results in unexpected behavior. Type casting and mutation should be separate so the latter is explicit, or a descriptive exception should be thrown and marked with...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top