mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
fixed #316.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2267 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
dca6c9a219
commit
199cdb071b
1 file changed
+4
-5
@@ -76,11 +76,6 @@ public final class DirectoryBrowserSupport {
|
||||
isFingerprint = true;
|
||||
}
|
||||
|
||||
if(!f.exists()) {
|
||||
rsp.sendError(HttpServletResponse.SC_NOT_FOUND);
|
||||
return;
|
||||
}
|
||||
|
||||
if(f.isDirectory()) {
|
||||
if(!req.getRequestURL().toString().endsWith("/")) {
|
||||
rsp.sendRedirect2(req.getRequestURL().append('/').toString());
|
||||
@@ -103,6 +98,10 @@ public final class DirectoryBrowserSupport {
|
||||
}
|
||||
}
|
||||
|
||||
if(!f.exists()) {
|
||||
rsp.sendError(HttpServletResponse.SC_NOT_FOUND);
|
||||
return;
|
||||
}
|
||||
|
||||
if(isFingerprint) {
|
||||
rsp.forward(Hudson.getInstance().getFingerprint(f.digest()),"/",req);
|
||||
|
||||
Reference in new issue
Block a user