Skip to content

Commit

Permalink
fix: don't submit empty hrefs as file options
Browse files Browse the repository at this point in the history
  • Loading branch information
josteinaj committed Mar 18, 2016
1 parent 2f51cf4 commit a26ae5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/Scripts.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ public ScriptForm(Long userId, Script script, Map<String, String[]> params) {

argument.clear();
for (String value : params.get(param)) {
String type = argument.getType();
if ("".equals(value) && ("anyDirURI".equals(type) || "anyFileURI".equals(type) || "anyURI".equals(type))) {
continue;
}
argument.add(value);
}
}
Expand Down

0 comments on commit a26ae5d

Please sign in to comment.