浏览代码

!258 修复特殊符号 转义错误
Merge pull request !258 from 高雄/N/A

kailing 1 年之前
父节点
当前提交
a54cd75469
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/src/main/java/cn/keking/service/FileHandlerService.java

+ 1 - 1
server/src/main/java/cn/keking/service/FileHandlerService.java

@@ -205,7 +205,7 @@ public class FileHandlerService implements InitializingBean {
         String pdfFolder = pdfFilePath.substring(0, pdfFilePath.length() - 4);
         String urlPrefix;
         try {
-            urlPrefix = baseUrl + URLEncoder.encode(pdfFolder, uriEncoding).replaceAll("\\+", "%2B");
+            urlPrefix = baseUrl + URLEncoder.encode(pdfFolder, uriEncoding).replaceAll("\\+", "%20");
         } catch (UnsupportedEncodingException e) {
             logger.error("UnsupportedEncodingException", e);
             urlPrefix = baseUrl + pdfFolder;