fix #2851 Ensure only JAR files are recognized as plugins in the plugin directory.

This commit is contained in:
Shinsuke Sugaya 2024-10-24 10:47:10 +09:00
parent 0d30f4d17b
commit 160dd6ed81
3 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View file

@ -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/

View file

@ -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) {

View file