Browse Source

修复:压缩包中文件名有空格异常

pull/12/head
陈精华 5 years ago committed by kl
parent
commit
03cc185085
  1. 2
      jodconverter-web/src/main/java/cn/keking/utils/DownloadUtils.java

2
jodconverter-web/src/main/java/cn/keking/utils/DownloadUtils.java

@ -46,7 +46,9 @@ public class DownloadUtils {
urlAddress = replacePlusMark(urlAddress);
urlAddress = encodeUrlParam(urlAddress);
// 因为tomcat不能处理'+'号,所以讲'+'号替换成'%20%'
// 也不能处理空格
urlAddress = urlAddress.replaceAll("\\+", "%20");
urlAddress = urlAddress.replaceAll(" ", "%20");
url = new URL(urlAddress);
} catch (MalformedURLException e) {
e.printStackTrace();

Loading…
Cancel
Save