Decode uri passed to IndividualProfileUrlMethod in case it's url-encoded.
This commit is contained in:
parent
3ce140a05b
commit
a55f0e9d5e
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ public class IndividualProfileUrlMethod implements TemplateMethodModel {
|
|||
throw new TemplateModelException("Wrong number of arguments");
|
||||
}
|
||||
|
||||
String uri = (String) args.get(0);
|
||||
String uri = (String) args.get(0);
|
||||
uri = UrlBuilder.urlDecode(uri); // decode in case it's encoded
|
||||
Environment env = Environment.getCurrentEnvironment();
|
||||
HttpServletRequest request = (HttpServletRequest) env.getCustomAttribute("request");
|
||||
VitroRequest vreq = new VitroRequest(request);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue