Permalink
Browse files

Prevent double URI-decoding of path parameters

HTTPServletRequest.getPathInfo() provides a URI-decoded string - if UriTemplateMatcher.getVariables() is also instructed to decode the path parameters found, issues can occur (eg. with standalone % or trailing commas)
  • Loading branch information...
cliberty committed Mar 29, 2017
1 parent d35088e commit c0731818d8c94f4be43018505440c4159663ab33
@@ -75,7 +75,7 @@ public void execute(JPublishContext context, Configuration configuration) throws
log.info(matcher.toString());
}
MultivaluedMap<String, String> multivaluedMap = matcher.getVariables(true);
MultivaluedMap<String, String> multivaluedMap = matcher.getVariables(false);
for (Map.Entry<String, List<String>> entry : multivaluedMap.entrySet()) {
if (entry.getValue() != null) {

0 comments on commit c073181

Please sign in to comment.