Commit 63e62ab5 authored by 陈精华's avatar 陈精华 Committed by kl

pdf.js使用里面一个bug

parent 9a027674
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment