sebbASF commented on code in PR #383:
URL: https://github.com/apache/commons-validator/pull/383#discussion_r3369332546
##########
src/main/java/org/apache/commons/validator/routines/UrlValidator.java:
##########
@@ -487,7 +513,7 @@ protected boolean isValidPath(final String path) {
try {
// Don't omit host otherwise leading path may be taken as host if
it starts with //
- final URI uri = new URI(null, "localhost", path, null);
+ final URI uri = new URI(null, "localhost", decodePath(path), null);
Review Comment:
Why not use URLDecoder directly on the path?
It does not seem right to provide a home-built percent decoder here.
--
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]