mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-24 00:07:10 +00:00
SECURITY: Add -dSAFER to ghostscript as a hardening measure
-dSAFER disables certain scary features of ghostscript (like arbitrary file access). Its primarily about postscript security, but enable it for pdfs to be safe. Bug: T136402 Change-Id: I0ab37ddb5d134334e975bc07d3b9ba7bfc7a5659
This commit is contained in:
parent
b3a126f55e
commit
e1d584ec6c
|
@ -201,6 +201,7 @@ class PdfHandler extends ImageHandler {
|
|||
"-sOutputFile=-",
|
||||
"-dFirstPage={$page}",
|
||||
"-dLastPage={$page}",
|
||||
"-dSAFER",
|
||||
"-r{$wgPdfHandlerDpi}",
|
||||
"-dBATCH",
|
||||
"-dNOPAUSE",
|
||||
|
|
Loading…
Reference in a new issue