From 9e5565230f1b93415ee875d111af005ccf836e38 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Thu, 18 Dec 2014 12:48:16 +0000 Subject: [PATCH] 6.2.1 (2014-12-18) - The constant K_TCPDF_THROW_EXCEPTION_ERROR is now set to false in the default configuration file. - An issue with the _destroy() method was fixed. --- CHANGELOG.TXT | 4 ++++ README.TXT | 4 ++-- composer.json | 2 +- config/tcpdf_config.php | 4 ++-- tcpdf.php | 13 ++++++++----- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 69430bc..0691b01 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,7 @@ +6.2.1 (2014-12-18) + - The constant K_TCPDF_THROW_EXCEPTION_ERROR is now set to false in the default configuration file. + - An issue with the _destroy() method was fixed. + 6.2.0 (2014-12-10) - Bug #1005 "Security Report, LFI posting internal files externally abusing default parameter" was fixed. - Static methods serializeTCPDFtagParameters() and unserializeTCPDFtagParameters() were moved as non static to the main TCPDF class (see changes in example n. 49). diff --git a/README.TXT b/README.TXT index 6d46b77..50ccdaf 100644 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.2.0 -Release date: 2014-12-10 +Version: 6.2.1 +Release date: 2014-12-18 Author: Nicola Asuni Copyright (c) 2002-2014: diff --git a/composer.json b/composer.json index 7870b4a..dcfa980 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.2.0", + "version": "6.2.1", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents and barcodes.", diff --git a/config/tcpdf_config.php b/config/tcpdf_config.php index 864a9d2..92317b1 100644 --- a/config/tcpdf_config.php +++ b/config/tcpdf_config.php @@ -2,7 +2,7 @@ //============================================================+ // File name : tcpdf_config.php // Begin : 2004-06-11 -// Last Update : 2014-09-02 +// Last Update : 2014-12-11 // // Description : Configuration file for TCPDF. // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com @@ -210,7 +210,7 @@ define('K_THAI_TOPCHARS', true); * If true allows to call TCPDF methods using HTML syntax * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. */ -define('K_TCPDF_CALLS_IN_HTML', true); +define('K_TCPDF_CALLS_IN_HTML', false); /** * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. diff --git a/tcpdf.php b/tcpdf.php index 891af09..cad9f0b 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.2.0 + * @version 6.2.1 */ // TCPDF configuration @@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 6.2.0 + * @version 6.2.1 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -7745,7 +7745,10 @@ class TCPDF { public function _destroy($destroyall=false, $preserve_objcopy=false) { if ($destroyall AND !$preserve_objcopy) { // remove all temporary files - array_map('unlink', glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*')); + $tmpfiles = glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*'); + if (!empty($tmpfiles)) { + array_map('unlink', $tmpfiles); + } } $preserve = array( 'file_id',