Skip to content

Commit

Permalink
trim results from getParam()
Browse files Browse the repository at this point in the history
  • Loading branch information
anw authored and anw committed May 9, 2012
1 parent 5229344 commit ad56a8b
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -72,7 +72,11 @@ public void setResponse(HttpServletResponse response) {
}

protected String getParam(String paramName) {
return (String) requestParameters.get(paramName);
String param = (String) requestParameters.get(paramName);
if (param != null) {
param = param.trim();
}
return param;
}

protected Object getParamObject(String paramName) {
Expand Down

0 comments on commit ad56a8b

Please sign in to comment.