Skip to content

Commit

Permalink
search: Fix all search vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyeonjae Park committed Nov 23, 2018
1 parent e935434 commit b76d3bc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/models/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,7 @@ private static <T> void inProjectsTemplate(String keyword, User user, Organizati
pel.endJunction();

List<Project> projects = pel.findList();
if(!projects.isEmpty()) {
projectAndKeyword.in(pathToProject, projects);
}
projectAndKeyword.in(pathToProject, projects);
}
junctionOperation.withJunction(keyword, projectAndKeyword);
projectAndKeyword.endJunction();
Expand All @@ -815,9 +813,7 @@ private static <T> void inProjectsTemplate(String keyword, User user, Junction<T
pel.endJunction();

List<Project> projects = pel.findList();
if(!projects.isEmpty()) {
projectAndKeyword.in(pathToProject, projects);
}
projectAndKeyword.in(pathToProject, projects);
}
junctionOperation.withJunction(keyword, projectAndKeyword);
projectAndKeyword.endJunction();
Expand Down

0 comments on commit b76d3bc

Please sign in to comment.