mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 07:05:55 +00:00
Plugins may read icons from an URL
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -2336,6 +2336,10 @@ public class Functions {
|
||||
}
|
||||
|
||||
if (iconMetadata == null) {
|
||||
if (!iconGuess.startsWith("/") && !iconGuess.startsWith("http")) {
|
||||
iconGuess = "/" + iconGuess;
|
||||
}
|
||||
|
||||
iconSource = rootURL + (iconGuess.startsWith("/images/") || iconGuess.startsWith("/plugin/") ? getResourcePath() : "") + iconGuess;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user