dxbjavid opened a new pull request, #749:
URL: https://github.com/apache/commons-text/pull/749
UrlDecoderStringLookup.lookup only catches UnsupportedEncodingException, so
a malformed percent-escape like ${urlDecoder:%} lets URLDecoder.decode throw
IllegalArgumentException straight out of StringSubstitutor.replace on the
default interpolator. The sibling decoder lookups already swallow that:
FunctionStringLookup catches IllegalArgumentException and returns null, so
${base64Decoder:!} just resolves to nothing. Catch it here too and return null
so malformed untrusted input decodes consistently.
--
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]