mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Security: Disable eval in pdfjs (#6615)
Closes https://github.com/paperless-ngx/paperless-ngx/security/dependabot/181 see https://github.com/advisories/GHSA-wgrm-67xf-hhpq
This commit is contained in:
parent
44ed78b442
commit
076b5b1af5
@ -35,6 +35,7 @@ import type {
|
||||
import { PDFSinglePageViewer } from 'pdfjs-dist/web/pdf_viewer'
|
||||
|
||||
PDFJS['verbosity'] = PDFJS.VerbosityLevel.ERRORS
|
||||
PDFJS['isEvalSupported'] = false
|
||||
|
||||
export enum RenderTextMode {
|
||||
DISABLED,
|
||||
|
Loading…
x
Reference in New Issue
Block a user