From c363a0ee6270c55d80d8db8db3e98259bc5281e5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 9 May 2013 16:04:12 +0200 Subject: php-tcpdf: new package from trashy --- php-tcpdf_badpath.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 php-tcpdf_badpath.patch (limited to 'php-tcpdf_badpath.patch') diff --git a/php-tcpdf_badpath.patch b/php-tcpdf_badpath.patch new file mode 100644 index 0000000..a04987c --- /dev/null +++ b/php-tcpdf_badpath.patch @@ -0,0 +1,22 @@ +diff -up tcpdf/tcpdf.php.patch tcpdf/tcpdf.php +--- tcpdf/tcpdf.php.patch 2013-05-09 11:18:50.076930131 +0200 ++++ tcpdf/tcpdf.php 2013-05-09 11:21:06.140921148 +0200 +@@ -13427,8 +13427,7 @@ class TCPDF { + ++$this->n; // signature object ($this->sig_obj_id + 1) + $this->signature_data = array(); + if (strlen($signing_cert) == 0) { +- $signing_cert = 'file://'.dirname(__FILE__).'/config/cert/tcpdf.crt'; +- $private_key_password = 'tcpdfdemo'; ++ throw new RuntimeException('Please provide a certificate file and password!'); + } + if (strlen($private_key) == 0) { + $private_key = $signing_cert; +@@ -18811,7 +18810,7 @@ Putting 1 is equivalent to putting 0 and + if (isset($tag['attribute']['action'])) { + $this->form_action = $tag['attribute']['action']; + } else { +- $this->form_action = K_PATH_URL.$_SERVER['SCRIPT_NAME']; ++ throw new RuntimeException('Please explicitly set action attribute path!'); + } + if (isset($tag['attribute']['enctype'])) { + $this->form_enctype = $tag['attribute']['enctype']; -- cgit