Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate info classes #1557

Merged
merged 3 commits into from
Nov 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ignoring duplicated "*-info.class" files
  • Loading branch information
LikeTheSalad committed Nov 3, 2023
commit 6d8da5fdb54c6480b6c7673ba4dd3fa0538ba214
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public void retain(Plugin.Engine.Source.Element element) throws IOException {
}
outputStream.closeEntry();
} catch (ZipException exception) {
if (!element.getName().startsWith("META-INF")) {
String name = element.getName();
if (!name.startsWith("META-INF") && !name.endsWith("-info.class")) {
throw exception;
}
}
Expand Down
Loading