mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue