mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
[HUDSON-2959] Fix double slash in image urls returned by doCheckName
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15079 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
f189ee2bfd
commit
9b19ec692d
1 file changed
+2
-1
@@ -12,6 +12,7 @@ import hudson.Functions;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.acegisecurity.userdetails.UsernameNotFoundException;
|
||||
import org.acegisecurity.acls.sid.Sid;
|
||||
import org.kohsuke.stapler.Stapler;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
import org.kohsuke.stapler.QueryParameter;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
@@ -270,7 +271,7 @@ public class GlobalMatrixAuthorizationStrategy extends AuthorizationStrategy {
|
||||
}
|
||||
|
||||
private String makeImg(String gif) {
|
||||
return String.format("<img src='%s%s/images/16x16/%s' style='margin-right:0.2em'>", Hudson.getInstance().getRootUrlFromRequest(), Hudson.RESOURCE_PATH, gif);
|
||||
return String.format("<img src='%s%s/images/16x16/%s' style='margin-right:0.2em'>", Stapler.getCurrentRequest().getContextPath(), Hudson.RESOURCE_PATH, gif);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user