mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5694 from thornbill/pdfjs-patch
This commit is contained in:
commit
4bb0c67340
1 changed files with 6 additions and 1 deletions
|
@ -207,7 +207,12 @@ export class PdfPlayer {
|
|||
this.bindEvents();
|
||||
GlobalWorkerOptions.workerSrc = appRouter.baseUrl() + '/libraries/pdf.worker.js';
|
||||
|
||||
const downloadTask = getDocument(downloadHref);
|
||||
const downloadTask = getDocument({
|
||||
url: downloadHref,
|
||||
// Disable for PDF.js XSS vulnerability
|
||||
// https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq
|
||||
isEvalSupported: false
|
||||
});
|
||||
return downloadTask.promise.then(book => {
|
||||
if (this.cancellationToken) return;
|
||||
this.book = book;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue