Skip to content

Commit 9e55652

Browse files
committed
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.
1 parent 40662da commit 9e55652

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

CHANGELOG.TXT

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
6.2.1 (2014-12-18)
2+
- The constant K_TCPDF_THROW_EXCEPTION_ERROR is now set to false in the default configuration file.
3+
- An issue with the _destroy() method was fixed.
4+
15
6.2.0 (2014-12-10)
26
- Bug #1005 "Security Report, LFI posting internal files externally abusing default parameter" was fixed.
37
- Static methods serializeTCPDFtagParameters() and unserializeTCPDFtagParameters() were moved as non static to the main TCPDF class (see changes in example n. 49).

README.TXT

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
88
------------------------------------------------------------
99

1010
Name: TCPDF
11-
Version: 6.2.0
12-
Release date: 2014-12-10
11+
Version: 6.2.1
12+
Release date: 2014-12-18
1313
Author: Nicola Asuni
1414

1515
Copyright (c) 2002-2014:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tecnick.com/tcpdf",
3-
"version": "6.2.0",
3+
"version": "6.2.1",
44
"homepage": "http://www.tcpdf.org/",
55
"type": "library",
66
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",

config/tcpdf_config.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//============================================================+
33
// File name : tcpdf_config.php
44
// Begin : 2004-06-11
5-
// Last Update : 2014-09-02
5+
// Last Update : 2014-12-11
66
//
77
// Description : Configuration file for TCPDF.
88
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - [email protected]
@@ -210,7 +210,7 @@
210210
* If true allows to call TCPDF methods using HTML syntax
211211
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
212212
*/
213-
define('K_TCPDF_CALLS_IN_HTML', true);
213+
define('K_TCPDF_CALLS_IN_HTML', false);
214214

215215
/**
216216
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.

tcpdf.php

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
//============================================================+
33
// File name : tcpdf.php
4-
// Version : 6.2.0
4+
// Version : 6.2.1
55
// Begin : 2002-08-03
6-
// Last Update : 2014-12-10
6+
// Last Update : 2014-12-18
77
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - [email protected]
88
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
99
// -------------------------------------------------------------------
@@ -104,7 +104,7 @@
104104
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
105105
* @package com.tecnick.tcpdf
106106
* @author Nicola Asuni
107-
* @version 6.2.0
107+
* @version 6.2.1
108108
*/
109109

110110
// TCPDF configuration
@@ -128,7 +128,7 @@
128128
* 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.<br>
129129
* @package com.tecnick.tcpdf
130130
* @brief PHP class for generating PDF documents without requiring external extensions.
131-
* @version 6.2.0
131+
* @version 6.2.1
132132
* @author Nicola Asuni - [email protected]
133133
*/
134134
class TCPDF {
@@ -7745,7 +7745,10 @@ public function Output($name='doc.pdf', $dest='I') {
77457745
public function _destroy($destroyall=false, $preserve_objcopy=false) {
77467746
if ($destroyall AND !$preserve_objcopy) {
77477747
// remove all temporary files
7748-
array_map('unlink', glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*'));
7748+
$tmpfiles = glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*');
7749+
if (!empty($tmpfiles)) {
7750+
array_map('unlink', $tmpfiles);
7751+
}
77497752
}
77507753
$preserve = array(
77517754
'file_id',

0 commit comments

Comments
 (0)