Issue #3319 - Fixing listing output dir slash expectation from tests
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
b929f5c2db
commit
31b0de2285
|
@ -692,22 +692,17 @@ public abstract class Resource implements ResourceFactory, Closeable
|
|||
{
|
||||
name = name.substring(slashIdx + 1);
|
||||
}
|
||||
if (item.isDirectory() && !name.endsWith("/"))
|
||||
{
|
||||
name += URIUtil.SLASH;
|
||||
}
|
||||
|
||||
// Name
|
||||
buf.append("<tr><td class=\"name\"><a href=\"");
|
||||
String path=URIUtil.addPaths(encodedBase,URIUtil.encodePath(name));
|
||||
buf.append(path);
|
||||
if (item.isDirectory() && !path.endsWith("/"))
|
||||
{
|
||||
buf.append(URIUtil.SLASH);
|
||||
}
|
||||
|
||||
buf.append("\">");
|
||||
buf.append(deTag(name));
|
||||
if (item.isDirectory() && !path.endsWith("/"))
|
||||
{
|
||||
buf.append(URIUtil.SLASH);
|
||||
}
|
||||
buf.append(" ");
|
||||
buf.append("</a></td>");
|
||||
|
||||
|
|
Loading…
Reference in New Issue