-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StringUtils.uriDecode
decodes strings with non-ASCII characters incorrectly
#32360
Comments
StringUtils.uriDecode
decodes strings with non-ascii characters incorrectlyStringUtils.uriDecode
decodes strings with non-ASCII characters incorrectly
StringUtils.uriDecode now correctly handles non-ASCII characters regardless of the presence of "%" encoding. Previously, the method took two different paths depending on whether "%" was found, leading to incorrect handling of non-ASCII characters in the absence of "%" encoding. This fix ensures that all characters, including non-ASCII ones, are properly decoded using the provided Charset, improving the method's reliability and consistency across all inputs. This change addresses issues with decoding multibyte characters and ensures compatibility with a wider range of character encodings, enhancing the utility's overall functionality. spring-projects#32360
Hello, I've submitted a Pull Request that aims to address this issue: PR #32373 |
StringUtils::uriDecode expects the input to be encoded, which means that the Note that |
Affects: 6.1.3
StringUtils.uriDecode
will take two different paths depending if "%" is found. One of these does not handle non-ASCII characters.Fast path:
Replace path:
The text was updated successfully, but these errors were encountered: