Fixing bad merge of Resource.java
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
81356d9d18
commit
954a8bd6a3
|
@ -45,8 +45,6 @@ import org.eclipse.jetty.util.UrlEncoded;
|
|||
import org.eclipse.jetty.util.log.Log;
|
||||
import org.eclipse.jetty.util.log.Logger;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
|
@ -574,8 +572,7 @@ public abstract class Resource implements ResourceFactory, Closeable
|
|||
if (query != null)
|
||||
{
|
||||
MultiMap<String> params = new MultiMap<>();
|
||||
byte[] rawQuery = query.getBytes(UTF_8);
|
||||
UrlEncoded.decodeUtf8To(rawQuery, 0, query.length(), params);
|
||||
UrlEncoded.decodeUtf8To(query, 0, query.length(), params);
|
||||
|
||||
String paramO = params.getString("O");
|
||||
String paramC = params.getString("C");
|
||||
|
@ -746,7 +743,7 @@ public abstract class Resource implements ResourceFactory, Closeable
|
|||
|
||||
// Name
|
||||
buf.append("<tr><td class=\"name\"><a href=\"");
|
||||
String path=URIUtil.addPaths(encodedBase,URIUtil.encodePath(name));
|
||||
String path=URIUtil.addEncodedPaths(encodedBase,URIUtil.encodePath(name));
|
||||
buf.append(path);
|
||||
buf.append("\">");
|
||||
buf.append(deTag(name));
|
||||
|
|
Loading…
Reference in New Issue