mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
Security: Correctly disable eval in pdfjs (#6702)
This commit is contained in:
parent
ac666df4ce
commit
7983487430
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,6 @@ import type {
|
|||
import { PDFSinglePageViewer } from 'pdfjs-dist/web/pdf_viewer'
|
||||
|
||||
PDFJS['verbosity'] = PDFJS.VerbosityLevel.ERRORS
|
||||
PDFJS['isEvalSupported'] = false
|
||||
|
||||
export enum RenderTextMode {
|
||||
DISABLED,
|
||||
|
|
@ -440,6 +439,7 @@ export class PdfViewerComponent
|
|||
cMapPacked: true,
|
||||
enableXfa: true,
|
||||
}
|
||||
params.isEvalSupported = false
|
||||
|
||||
if (srcType === 'string') {
|
||||
params.url = this.src
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue