mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 08:36:01 +00:00
deleted encoding-less variant of readFirstLine according to https://github.com/jenkinsci/jenkins/commit/4ee8d6890c354e67daeb5f55806c16f6986b32c3#core/src/main/java/hudson/util/IOUtils.java-P13
This commit is contained in:
1 parent
9e7f6e417a
commit
3b154312c8
2 files changed
+1
-12
No files matched your search
@@ -85,7 +85,7 @@ public class ClassicPluginStrategy implements PluginStrategy {
|
||||
boolean isLinked = archive.getName().endsWith(".hpl");
|
||||
if (isLinked) {
|
||||
// resolve the .hpl file to the location of the manifest file
|
||||
final String firstLine = IOUtils.readFirstLine(archive);
|
||||
final String firstLine = IOUtils.readFirstLine(new FileInputStream(archive), "UTF-8");
|
||||
if (firstLine.startsWith("Manifest-Version:")) {
|
||||
// this is the manifest already
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user