sahvx655-wq opened a new pull request, #1013:
URL: https://github.com/apache/tomcat/pull/1013

   Base64.getDecoder().decode throws IllegalArgumentException, not IOException, 
so a Content-Disposition param like `filename="=?utf-8?B?@@@@?="` lets the 
unchecked exception escape `decodeWord` and `ParameterParser.parse` straight 
out of multipart parsing, where the only catch handlers are for 
IOException/IllegalStateException. Adding it to the existing catch keeps the 
contract that decodeWord throws UnsupportedEncodingException for malformed 
encodings, which decodeText/ParameterParser already handle by keeping the raw 
value.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to