Consolidating the validation logic and pointing everything to there would vastly clean up some of the special case handling spattered around. There may be some cases like illegal content length that cant be isolated, but most other checks can be.
This way its easier to manage the option of allowing/pruning illegal content since access to the removal logic will be funneled through these points.
Consolidating the validation logic and pointing everything to there would vastly clean up some of the special case handling spattered around. There may be some cases like illegal content length that cant be isolated, but most other checks can be.
This way its easier to manage the option of allowing/pruning illegal content since access to the removal logic will be funneled through these points.