mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Security: Correctly disable eval in pdfjs (#6702)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon