mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-31 21:45:25 +00:00
[JENKINS-67849] Correct icon resolution for remote icons (#6476)
This commit is contained in:
1 parent
e17c8a557f
commit
387104fd86
1 file changed
+5
-2
@@ -2347,10 +2347,13 @@ public class Functions {
|
||||
}
|
||||
|
||||
if (iconMetadata == null) {
|
||||
if (!iconGuess.startsWith("/") && !iconGuess.startsWith("http")) {
|
||||
//noinspection HttpUrlsUsage
|
||||
if (iconGuess.startsWith("http://") || iconGuess.startsWith("https://")) {
|
||||
return iconGuess;
|
||||
}
|
||||
if (!iconGuess.startsWith("/")) {
|
||||
iconGuess = "/" + iconGuess;
|
||||
}
|
||||
|
||||
iconSource = rootURL + (iconGuess.startsWith("/images/") || iconGuess.startsWith("/plugin/") ? getResourcePath() : "") + iconGuess;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user