Permalink
Browse files

trim results from getParam()

  • Loading branch information...
1 parent 5229344 commit ad56a8bca7eb635d6d9b84f3784d3c1b7115936d anw committed May 9, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/org/elfinder/servlets/commands/AbstractCommand.java
@@ -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) {

0 comments on commit ad56a8b

Please sign in to comment.