Skip to content

Commit

Permalink
Fixed encoding issue in JSON filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
gWestenberger committed Nov 30, 2016
1 parent 039cc1a commit 431917c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/opencms/jsp/jsonpart/CmsJsonPartFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ public void setContentLength(int len) {
*/
public static boolean isJsonRequest(ServletRequest request) {

return Boolean.parseBoolean(request.getParameter(PARAM_JSON));
HttpServletRequest sr = (HttpServletRequest)request;
return (sr.getQueryString() != null) && (sr.getQueryString().contains("__json=true"));
}

/**
Expand Down

0 comments on commit 431917c

Please sign in to comment.