fix #2851 Ensure only JAR files are recognized as plugins in the plugin directory.
This commit is contained in:
parent
0d30f4d17b
commit
160dd6ed81
3 changed files with 3 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -6,7 +6,8 @@
|
|||
/src/main/webapp/WEB-INF/classes/
|
||||
/src/main/webapp/WEB-INF/lib/
|
||||
/src/main/webapp/WEB-INF/site/
|
||||
/src/main/webapp/WEB-INF/plugin/
|
||||
/src/main/webapp/WEB-INF/plugin/*
|
||||
!/src/main/webapp/WEB-INF/plugin/.keep
|
||||
/src/main/webapp/WEB-INF/env/crawler/lib/
|
||||
/src/main/webapp/WEB-INF/env/suggest/lib/
|
||||
/src/main/webapp/WEB-INF/env/thumbnail/lib/
|
||||
|
|
|
@ -232,7 +232,7 @@ public class PluginHelper {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return n.endsWith(".jar");
|
||||
});
|
||||
final List<Artifact> list = new ArrayList<>(jarFiles.length);
|
||||
for (final File file : jarFiles) {
|
||||
|
|
0
src/main/webapp/WEB-INF/plugin/.keep
Normal file
0
src/main/webapp/WEB-INF/plugin/.keep
Normal file
Loading…
Add table
Reference in a new issue