summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsnopek2018-10-04 15:56:24 (GMT)
committerDavid Snopek2018-10-04 15:56:24 (GMT)
commitd8bd4dc8edd64fbf840af981ea0ab542e6f90ad2 (patch)
tree7de144b294fc4c27e6967287684c1149de7b19ed
parent559b9143c125607d340400571c56d28089a0db7e (diff)
Issue #3004166 by dsnopek: [print] Fix D6LTS patch for SA-CONTRIB-2018-063
-rw-r--r--common/contrib/print/SA-CONTRIB-2018-063.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/contrib/print/SA-CONTRIB-2018-063.patch b/common/contrib/print/SA-CONTRIB-2018-063.patch
index 67902dc..10c8287 100644
--- a/common/contrib/print/SA-CONTRIB-2018-063.patch
+++ b/common/contrib/print/SA-CONTRIB-2018-063.patch
@@ -1,5 +1,5 @@
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();