From 63e62ab57babcd48b7ae5297229daddb9348a97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Tue, 30 Jul 2019 14:46:31 +0800 Subject: [PATCH] =?UTF-8?q?pdf.js=E4=BD=BF=E7=94=A8=E9=87=8C=E9=9D=A2?= =?UTF-8?q?=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jodconverter-web/src/main/resources/static/pdfjs/web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jodconverter-web/src/main/resources/static/pdfjs/web/viewer.js b/jodconverter-web/src/main/resources/static/pdfjs/web/viewer.js index 10a91c78..9c20bb2f 100644 --- a/jodconverter-web/src/main/resources/static/pdfjs/web/viewer.js +++ b/jodconverter-web/src/main/resources/static/pdfjs/web/viewer.js @@ -1897,7 +1897,7 @@ var validateFileURL = void 0; } var fileOrigin = new URL(file, window.location.href).origin; if (fileOrigin !== viewerOrigin) { - return '/getCorsFile?urlPath=' + file; + return '/getCorsFile?urlPath=' + encodeURIComponent(file); } } catch (ex) { var message = ex && ex.message;