Skip to content

Commit

Permalink
Improve file validation (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-CB committed Sep 3, 2023
1 parent 1e0019a commit 3f9dd9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public FormValidation doCheckLinkIcon(@QueryParameter String value) {

try {
File jenkinsHomeDirectory = Jenkins.get().getRootDir();
String userContentDirectory = jenkinsHomeDirectory.getCanonicalPath() + File.separatorChar + "userContent";
String userContentDirectory = jenkinsHomeDirectory.getCanonicalPath() + File.separatorChar + "userContent" + File.separatorChar;

Check warning on line 154 in src/main/java/hudson/plugins/sidebar_link/SidebarLinkPlugin.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 154 is not covered by tests
File imageFile = new File(jenkinsHomeDirectory, value);

String canonicalPath = imageFile.getCanonicalPath();
Expand Down

0 comments on commit 3f9dd9b

Please sign in to comment.