THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

search: Fix all search vulnerability

tags/v1.11.1
Hyeonjae Park 11 months ago
parent
commit
b76d3bcc9d
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      app/models/Search.java

+ 2
- 6
app/models/Search.java View File

@@ -786,9 +786,7 @@ public class Search {
pel.endJunction();

List<Project> projects = pel.findList();
if(!projects.isEmpty()) {
projectAndKeyword.in(pathToProject, projects);
}
projectAndKeyword.in(pathToProject, projects);
}
junctionOperation.withJunction(keyword, projectAndKeyword);
projectAndKeyword.endJunction();
@@ -815,9 +813,7 @@ public class Search {
pel.endJunction();

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


Loading…
Cancel
Save