Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 7ea668f

Browse files
committed
[IMP] Improve poppler subprocess security
1 parent 263d7fb commit 7ea668f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

camelot/backends/poppler_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def convert(self, pdf_path, png_path):
1919

2020
try:
2121
subprocess.check_output(
22-
" ".join(pdftopng_command), stderr=subprocess.STDOUT, shell=True
22+
" ".join(pdftopng_command), stderr=subprocess.STDOUT, shell=False
2323
)
2424
except subprocess.CalledProcessError as e:
2525
raise ValueError(e.output)

0 commit comments

Comments
 (0)