提交 3fd9e0c2 编写于 作者: K kohsuke

backward compatibility with URL.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4244 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c009cf61
...@@ -49,6 +49,8 @@ public final class DirectoryBrowserSupport { ...@@ -49,6 +49,8 @@ public final class DirectoryBrowserSupport {
public final void serveFile(StaplerRequest req, StaplerResponse rsp, FilePath root, String icon, boolean serveDirIndex) throws IOException, ServletException, InterruptedException { public final void serveFile(StaplerRequest req, StaplerResponse rsp, FilePath root, String icon, boolean serveDirIndex) throws IOException, ServletException, InterruptedException {
String pattern = req.getParameter("pattern"); String pattern = req.getParameter("pattern");
if(pattern==null)
pattern = req.getParameter("path"); // compatibility with Hudson<1.129
if (pattern != null) { if (pattern != null) {
servePattern(req, rsp, root, icon, pattern); servePattern(req, rsp, root, icon, pattern);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册