Browse Source

修复通过网页访问时,部分文件名打不开的BUG

main
zhouxin 3 years ago
parent
commit
394eb7b6db
  1. 3
      src/main/java/net/sf/webdav/methods/DoGet.java

3
src/main/java/net/sf/webdav/methods/DoGet.java

@ -18,6 +18,7 @@ package net.sf.webdav.methods; @@ -18,6 +18,7 @@ package net.sf.webdav.methods;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URLEncoder;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Arrays;
@ -145,7 +146,7 @@ public class DoGet extends DoHead { @@ -145,7 +146,7 @@ public class DoGet extends DoHead {
childrenTemp.append("\">");
childrenTemp.append("<td>");
childrenTemp.append("<a href=\"");
childrenTemp.append(child);
childrenTemp.append(URLEncoder.encode(child, "utf-8"));
StoredObject obj= _store.getStoredObject(transaction, path+"/"+child);
if (obj == null)
{

Loading…
Cancel
Save