!258 修复特殊符号 转义错误

Merge pull request !258 from 高雄/N/A
pull/251/MERGE
kailing 11 months ago committed by Gitee
commit a54cd75469
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -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;

Loading…
Cancel
Save