Commit d8bd4dc8 authored by dsnopek's avatar dsnopek Committed by dsnopek

Issue #3004166 by dsnopek: [print] Fix D6LTS patch for SA-CONTRIB-2018-063

parent 559b9143
diff --git a/print_pdf/print_pdf.pages.inc b/print_pdf/print_pdf.pages.inc
index 1f1fb92..6999cb8 100644
index 1f1fb92..5c330a8 100644
--- a/print_pdf/print_pdf.pages.inc
+++ b/print_pdf/print_pdf.pages.inc
@@ -110,6 +110,9 @@ function print_pdf_generate_path($path, $cid = NULL, $pdf_filename = NULL) {
......@@ -28,7 +28,7 @@ index 1f1fb92..6999cb8 100644
}
+ // Prevent options that could result in execution of arbitrary commands.
+ $wkhtmltopdf_options = escapeshellcmd($wkhtmltopdf_options);
+ $print_pdf_wkhtmltopdf_options = escapeshellcmd($print_pdf_wkhtmltopdf_options);
+
$version = _print_pdf_wkhtmltopdf_version();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment