Browse Source

pdf.js使用里面一个bug

pull/11/head
陈精华 5 years ago committed by kl
parent
commit
63e62ab57b
  1. 2
      jodconverter-web/src/main/resources/static/pdfjs/web/viewer.js

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

Loading…
Cancel
Save