Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xurizaemon/11528913 to your computer and use it in GitHub Desktop.
Save xurizaemon/11528913 to your computer and use it in GitHub Desktop.
diff --git a/print_pdf/lib_handlers/print_pdf_wkhtmltopdf/print_pdf_wkhtmltopdf.pages.inc b/print_pdf/lib_handlers/print_pdf_wkhtmltopdf/print_pdf_wkhtmltopdf.pages.inc
index 3e86f97..a4b1c6c 100644
--- a/print_pdf/lib_handlers/print_pdf_wkhtmltopdf/print_pdf_wkhtmltopdf.pages.inc
+++ b/print_pdf/lib_handlers/print_pdf_wkhtmltopdf/print_pdf_wkhtmltopdf.pages.inc
@@ -33,7 +33,7 @@ function print_pdf_wkhtmltopdf_print_pdf_generate($html, $meta, $paper_size = NU
$version = print_pdf_wkhtmltopdf_pdf_tool_version($pdf_tool[1]);
// 0.10.0 beta2 identifies itself as 0.9.9
- if (version_compare($version, '0.9.9', '>=')) {
+ if (version_compare($version, '0.10', '>=')) {
$wkhtmltopdf_options = '--disable-local-file-access ' . $wkhtmltopdf_options;
}
elseif (version_compare($version, '0.9.6', '>=')) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment