mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
8.8
This commit is contained in:
parent
aaf27806e7
commit
435bb758ff
14 changed files with 10201 additions and 8961 deletions
18
lam/lib/3rdParty/tcpdf/CHANGELOG.TXT
vendored
18
lam/lib/3rdParty/tcpdf/CHANGELOG.TXT
vendored
|
@ -1,10 +1,18 @@
|
||||||
6.6.5 (2023-09-06)
|
6.7.5 (2024-04-20)
|
||||||
|
- Update GitHub actions
|
||||||
|
- fix: CSV-2024-22640 (#712)
|
||||||
|
|
||||||
|
6.7.4 (2024-03-24)
|
||||||
|
- Upgrade tcpdf tag encryption algorithm.
|
||||||
|
- Fix regression issue #699.
|
||||||
|
- Fix security issue.
|
||||||
|
- [BREAKING CHANGE] The tcpdf HTML tag syntax has changed, see example_049.php.
|
||||||
|
- New K_ALLOWED_TCPDF_TAGS configuration constant to set the allowed methods for the tcdpf HTML tag.
|
||||||
|
- Raised minimum PHP version to PHP 5.5.0.
|
||||||
|
|
||||||
|
6.6.5 (2023-09-02)
|
||||||
- Fix corrupted file.
|
- Fix corrupted file.
|
||||||
|
|
||||||
6.6.4 (2023-09-06)
|
|
||||||
- Fix GitHub automation tests.
|
- Fix GitHub automation tests.
|
||||||
|
|
||||||
6.6.3 (2023-09-06)
|
|
||||||
- Fix SPDX license ID (#591)
|
- Fix SPDX license ID (#591)
|
||||||
- Fix warning "array offset on value of type null" (#620)
|
- Fix warning "array offset on value of type null" (#620)
|
||||||
- Improve the README about the status of this library (#589)
|
- Improve the README about the status of this library (#589)
|
||||||
|
|
2
lam/lib/3rdParty/tcpdf/README.md
vendored
2
lam/lib/3rdParty/tcpdf/README.md
vendored
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
* **category** Library
|
* **category** Library
|
||||||
* **author** Nicola Asuni <info@tecnick.com>
|
* **author** Nicola Asuni <info@tecnick.com>
|
||||||
* **copyright** 2002-2023 Nicola Asuni - Tecnick.com LTD
|
* **copyright** 2002-2024 Nicola Asuni - Tecnick.com LTD
|
||||||
* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
|
* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
|
||||||
* **link** http://www.tcpdf.org
|
* **link** http://www.tcpdf.org
|
||||||
* **source** https://github.com/tecnickcom/TCPDF
|
* **source** https://github.com/tecnickcom/TCPDF
|
||||||
|
|
2
lam/lib/3rdParty/tcpdf/VERSION
vendored
2
lam/lib/3rdParty/tcpdf/VERSION
vendored
|
@ -1 +1 @@
|
||||||
6.6.5
|
6.7.5
|
||||||
|
|
4
lam/lib/3rdParty/tcpdf/composer.json
vendored
4
lam/lib/3rdParty/tcpdf/composer.json
vendored
|
@ -12,7 +12,7 @@
|
||||||
"barcodes"
|
"barcodes"
|
||||||
],
|
],
|
||||||
"homepage": "http://www.tcpdf.org/",
|
"homepage": "http://www.tcpdf.org/",
|
||||||
"version": "6.6.5",
|
"version": "6.7.5",
|
||||||
"license": "LGPL-3.0-or-later",
|
"license": "LGPL-3.0-or-later",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.0"
|
"php": ">=5.5.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
|
|
|
@ -212,6 +212,14 @@ define('K_THAI_TOPCHARS', true);
|
||||||
*/
|
*/
|
||||||
define('K_TCPDF_CALLS_IN_HTML', false);
|
define('K_TCPDF_CALLS_IN_HTML', false);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of TCPDF methods that are allowed to be called using HTML syntax.
|
||||||
|
* Note: each method name must end with surrounded with | (pipe) character.
|
||||||
|
* The constant K_TCPDF_CALLS_IN_HTML must be set to true.
|
||||||
|
* IMPORTANT: For security reason, disable this feature if you are allowing user HTML content.
|
||||||
|
*/
|
||||||
|
define('K_ALLOWED_TCPDF_TAGS', '');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
|
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -275,7 +275,7 @@ class TCPDF_COLORS {
|
||||||
$color = strtolower($color);
|
$color = strtolower($color);
|
||||||
// check for javascript color array syntax
|
// check for javascript color array syntax
|
||||||
if (strpos($color, '[') !== false) {
|
if (strpos($color, '[') !== false) {
|
||||||
if (preg_match('/[\[][\"\'](t|g|rgb|cmyk)[\"\'][\,]?([0-9\.]*)[\,]?([0-9\.]*)[\,]?([0-9\.]*)[\,]?([0-9\.]*)[\]]/', $color, $m) > 0) {
|
if (preg_match('/[\[][\"\'](t|g|rgb|cmyk)[\"\'][\,]?([0-9\.]*+)[\,]?([0-9\.]*+)[\,]?([0-9\.]*+)[\,]?([0-9\.]*+)[\]]/', $color, $m) > 0) {
|
||||||
$returncolor = array();
|
$returncolor = array();
|
||||||
switch ($m[1]) {
|
switch ($m[1]) {
|
||||||
case 'cmyk': {
|
case 'cmyk': {
|
||||||
|
|
|
@ -55,7 +55,7 @@ class TCPDF_STATIC {
|
||||||
* Current TCPDF version.
|
* Current TCPDF version.
|
||||||
* @private static
|
* @private static
|
||||||
*/
|
*/
|
||||||
private static $tcpdf_version = '6.6.5';
|
private static $tcpdf_version = '6.7.5';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String alias for total number of pages.
|
* String alias for total number of pages.
|
||||||
|
|
203
lam/lib/3rdParty/tcpdf/tcpdf.php
vendored
203
lam/lib/3rdParty/tcpdf/tcpdf.php
vendored
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : tcpdf.php
|
// File name : tcpdf.php
|
||||||
// Version : 6.6.5
|
// Version : 6.7.5
|
||||||
// Begin : 2002-08-03
|
// Begin : 2002-08-03
|
||||||
// Last Update : 2023-09-06
|
// Last Update : 2024-03-18
|
||||||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
||||||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
// Copyright (C) 2002-2023 Nicola Asuni - Tecnick.com LTD
|
// Copyright (C) 2002-2024 Nicola Asuni - Tecnick.com LTD
|
||||||
//
|
//
|
||||||
// This file is part of TCPDF software library.
|
// This file is part of TCPDF software library.
|
||||||
//
|
//
|
||||||
|
@ -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.<br>
|
* 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>
|
||||||
* @package com.tecnick.tcpdf
|
* @package com.tecnick.tcpdf
|
||||||
* @brief PHP class for generating PDF documents without requiring external extensions.
|
* @brief PHP class for generating PDF documents without requiring external extensions.
|
||||||
* @version 6.6.5
|
* @version 6.7.5
|
||||||
* @author Nicola Asuni - info@tecnick.com
|
* @author Nicola Asuni - info@tecnick.com
|
||||||
* @IgnoreAnnotation("protected")
|
* @IgnoreAnnotation("protected")
|
||||||
* @IgnoreAnnotation("public")
|
* @IgnoreAnnotation("public")
|
||||||
|
@ -838,6 +838,13 @@ class TCPDF {
|
||||||
*/
|
*/
|
||||||
protected $file_id;
|
protected $file_id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Internal secret used to encrypt data.
|
||||||
|
* @protected
|
||||||
|
* @since 6.7.5 (2024-03-21)
|
||||||
|
*/
|
||||||
|
protected $hash_key;
|
||||||
|
|
||||||
// --- bookmark ---
|
// --- bookmark ---
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1880,10 +1887,10 @@ class TCPDF {
|
||||||
// set file ID for trailer
|
// set file ID for trailer
|
||||||
$serformat = (is_array($format) ? json_encode($format) : $format);
|
$serformat = (is_array($format) ? json_encode($format) : $format);
|
||||||
$this->file_id = md5(TCPDF_STATIC::getRandomSeed('TCPDF'.$orientation.$unit.$serformat.$encoding));
|
$this->file_id = md5(TCPDF_STATIC::getRandomSeed('TCPDF'.$orientation.$unit.$serformat.$encoding));
|
||||||
|
$this->hash_key = hash_hmac('sha256', TCPDF_STATIC::getRandomSeed($this->file_id), TCPDF_STATIC::getRandomSeed('TCPDF'), false);
|
||||||
$this->font_obj_ids = array();
|
$this->font_obj_ids = array();
|
||||||
$this->page_obj_id = array();
|
$this->page_obj_id = array();
|
||||||
$this->form_obj_id = array();
|
$this->form_obj_id = array();
|
||||||
|
|
||||||
// set pdf/a mode
|
// set pdf/a mode
|
||||||
if ($pdfa != false) {
|
if ($pdfa != false) {
|
||||||
$this->pdfa_mode = true;
|
$this->pdfa_mode = true;
|
||||||
|
@ -4427,7 +4434,7 @@ class TCPDF {
|
||||||
$this->Error('Unknow font type: '.$type.'');
|
$this->Error('Unknow font type: '.$type.'');
|
||||||
}
|
}
|
||||||
// set name if unset
|
// set name if unset
|
||||||
if (!isset($name) OR empty($name)) {
|
if (empty($name)) {
|
||||||
$name = $fontkey;
|
$name = $fontkey;
|
||||||
}
|
}
|
||||||
// create artificial font style variations if missing (only works with non-embedded fonts)
|
// create artificial font style variations if missing (only works with non-embedded fonts)
|
||||||
|
@ -4470,7 +4477,7 @@ class TCPDF {
|
||||||
// we are inside an XObject template
|
// we are inside an XObject template
|
||||||
$this->xobjects[$this->xobjid]['fonts'][$fontkey] = $this->numfonts;
|
$this->xobjects[$this->xobjid]['fonts'][$fontkey] = $this->numfonts;
|
||||||
}
|
}
|
||||||
if (isset($diff) AND (!empty($diff))) {
|
if (!empty($diff)) {
|
||||||
//Search existing encodings
|
//Search existing encodings
|
||||||
$d = 0;
|
$d = 0;
|
||||||
$nb = count($this->diffs);
|
$nb = count($this->diffs);
|
||||||
|
@ -16389,6 +16396,53 @@ class TCPDF {
|
||||||
* @since 3.2.000 (2008-06-20)
|
* @since 3.2.000 (2008-06-20)
|
||||||
*/
|
*/
|
||||||
protected function getHtmlDomArray($html) {
|
protected function getHtmlDomArray($html) {
|
||||||
|
// set inheritable properties fot the first void element
|
||||||
|
// possible inheritable properties are: azimuth, border-collapse, border-spacing, caption-side, color, cursor, direction, empty-cells, font, font-family, font-stretch, font-size, font-size-adjust, font-style, font-variant, font-weight, letter-spacing, line-height, list-style, list-style-image, list-style-position, list-style-type, orphans, page, page-break-inside, quotes, speak, speak-header, text-align, text-indent, text-transform, volume, white-space, widows, word-spacing
|
||||||
|
$dom = array(
|
||||||
|
array(
|
||||||
|
'tag' => false,
|
||||||
|
'block' => false,
|
||||||
|
'value' => '',
|
||||||
|
'parent' => 0,
|
||||||
|
'hide' => false,
|
||||||
|
'fontname' => $this->FontFamily,
|
||||||
|
'fontstyle' => $this->FontStyle,
|
||||||
|
'fontsize' => $this->FontSizePt,
|
||||||
|
'font-stretch' => $this->font_stretching,
|
||||||
|
'letter-spacing' => $this->font_spacing,
|
||||||
|
'stroke' => $this->textstrokewidth,
|
||||||
|
'fill' => (($this->textrendermode % 2) == 0),
|
||||||
|
'clip' => ($this->textrendermode > 3),
|
||||||
|
'line-height' => $this->cell_height_ratio,
|
||||||
|
'bgcolor' => false,
|
||||||
|
'fgcolor' => $this->fgcolor, // color
|
||||||
|
'strokecolor' => $this->strokecolor,
|
||||||
|
'align' => '',
|
||||||
|
'listtype' => '',
|
||||||
|
'text-indent' => 0,
|
||||||
|
'text-transform' => '',
|
||||||
|
'border' => array(),
|
||||||
|
'dir' => $this->rtl?'rtl':'ltr',
|
||||||
|
'width' => 0,
|
||||||
|
'height' => 0,
|
||||||
|
'x' => 0,
|
||||||
|
'y' => 0,
|
||||||
|
'w' => 0,
|
||||||
|
'h' => 0,
|
||||||
|
'l' => 0,
|
||||||
|
't' => 0,
|
||||||
|
'r' => 0,
|
||||||
|
'b' => 0,
|
||||||
|
'padding' => array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0),
|
||||||
|
'margin' => array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0),
|
||||||
|
'border-spacing' => array('H' => 0, 'V' => 0),
|
||||||
|
'border-collapse' => 'separate',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
if(empty($html)) {
|
||||||
|
return $dom;
|
||||||
|
}
|
||||||
// array of CSS styles ( selector => properties).
|
// array of CSS styles ( selector => properties).
|
||||||
$css = array();
|
$css = array();
|
||||||
// get CSS array defined at previous call
|
// get CSS array defined at previous call
|
||||||
|
@ -16533,37 +16587,8 @@ class TCPDF {
|
||||||
// count elements
|
// count elements
|
||||||
$maxel = count($a);
|
$maxel = count($a);
|
||||||
$elkey = 0;
|
$elkey = 0;
|
||||||
$key = 0;
|
|
||||||
// create an array of elements
|
|
||||||
$dom = array();
|
|
||||||
$dom[$key] = array();
|
|
||||||
// set inheritable properties fot the first void element
|
|
||||||
// possible inheritable properties are: azimuth, border-collapse, border-spacing, caption-side, color, cursor, direction, empty-cells, font, font-family, font-stretch, font-size, font-size-adjust, font-style, font-variant, font-weight, letter-spacing, line-height, list-style, list-style-image, list-style-position, list-style-type, orphans, page, page-break-inside, quotes, speak, speak-header, text-align, text-indent, text-transform, volume, white-space, widows, word-spacing
|
|
||||||
$dom[$key]['tag'] = false;
|
|
||||||
$dom[$key]['block'] = false;
|
|
||||||
$dom[$key]['value'] = '';
|
|
||||||
$dom[$key]['parent'] = 0;
|
|
||||||
$dom[$key]['hide'] = false;
|
|
||||||
$dom[$key]['fontname'] = $this->FontFamily;
|
|
||||||
$dom[$key]['fontstyle'] = $this->FontStyle;
|
|
||||||
$dom[$key]['fontsize'] = $this->FontSizePt;
|
|
||||||
$dom[$key]['font-stretch'] = $this->font_stretching;
|
|
||||||
$dom[$key]['letter-spacing'] = $this->font_spacing;
|
|
||||||
$dom[$key]['stroke'] = $this->textstrokewidth;
|
|
||||||
$dom[$key]['fill'] = (($this->textrendermode % 2) == 0);
|
|
||||||
$dom[$key]['clip'] = ($this->textrendermode > 3);
|
|
||||||
$dom[$key]['line-height'] = $this->cell_height_ratio;
|
|
||||||
$dom[$key]['bgcolor'] = false;
|
|
||||||
$dom[$key]['fgcolor'] = $this->fgcolor; // color
|
|
||||||
$dom[$key]['strokecolor'] = $this->strokecolor;
|
|
||||||
$dom[$key]['align'] = '';
|
|
||||||
$dom[$key]['listtype'] = '';
|
|
||||||
$dom[$key]['text-indent'] = 0;
|
|
||||||
$dom[$key]['text-transform'] = '';
|
|
||||||
$dom[$key]['border'] = array();
|
|
||||||
$dom[$key]['dir'] = $this->rtl?'rtl':'ltr';
|
|
||||||
$thead = false; // true when we are inside the THEAD tag
|
$thead = false; // true when we are inside the THEAD tag
|
||||||
++$key;
|
$key = 1;
|
||||||
$level = array();
|
$level = array();
|
||||||
array_push($level, 0); // root
|
array_push($level, 0); // root
|
||||||
while ($elkey < $maxel) {
|
while ($elkey < $maxel) {
|
||||||
|
@ -17200,41 +17225,59 @@ class TCPDF {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return an hash code used to ensure that the serialized data has been generated by this TCPDF instance.
|
* Calculates the hash value of the given data.
|
||||||
* @param string $data serialized data
|
*
|
||||||
* @return string
|
* @param string $data The data to be hashed.
|
||||||
* @public static
|
* @return string The hashed value of the data.
|
||||||
*/
|
*/
|
||||||
protected function getHashForTCPDFtagParams($data) {
|
protected function hashTCPDFtag($data) {
|
||||||
return md5(strlen($data).$this->file_id.$data);
|
return hash_hmac('sha256', $data, $this->hash_key, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serialize an array of parameters to be used with TCPDF tag in HTML code.
|
* Serialize data to be used with TCPDF tag in HTML code.
|
||||||
* @param array $data parameters array
|
* @param string $method TCPDF method name
|
||||||
* @return string containing serialized data
|
* @param array $params Method parameters
|
||||||
|
* @return string Serialized data
|
||||||
* @public static
|
* @public static
|
||||||
*/
|
*/
|
||||||
public function serializeTCPDFtagParameters($data) {
|
public function serializeTCPDFtag($method, $params=array()) {
|
||||||
|
$data = array('m' => $method, 'p' => $params);
|
||||||
$encoded = urlencode(json_encode($data));
|
$encoded = urlencode(json_encode($data));
|
||||||
return $this->getHashForTCPDFtagParams($encoded).$encoded;
|
$hash = $this->hashTCPDFtag($encoded);
|
||||||
|
return strlen($hash).'+'.$hash.'+'.$encoded;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unserialize parameters to be used with TCPDF tag in HTML code.
|
* Unserialize data to be used with TCPDF tag in HTML code.
|
||||||
* @param string $data serialized data
|
* @param string $data serialized data
|
||||||
* @return array containing unserialized data
|
* @return array containing unserialized data
|
||||||
* @protected static
|
* @protected static
|
||||||
*/
|
*/
|
||||||
protected function unserializeTCPDFtagParameters($data) {
|
protected function unserializeTCPDFtag($data) {
|
||||||
$hash = substr($data, 0, 32);
|
$hpos = strpos($data, '+');
|
||||||
$encoded = substr($data, 32);
|
$hlen = intval(substr($data, 0, $hpos));
|
||||||
if ($hash != $this->getHashForTCPDFtagParams($encoded)) {
|
$hash = substr($data, $hpos + 1, $hlen);
|
||||||
|
$encoded = substr($data, $hpos + 2 + $hlen);
|
||||||
|
if ($hash != $this->hashTCPDFtag($encoded)) {
|
||||||
$this->Error('Invalid parameters');
|
$this->Error('Invalid parameters');
|
||||||
}
|
}
|
||||||
return json_decode(urldecode($encoded), true);
|
return json_decode(urldecode($encoded), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a TCPDF tag is allowed
|
||||||
|
* @param string $method TCPDF method name
|
||||||
|
* @return boolean
|
||||||
|
* @protected
|
||||||
|
*/
|
||||||
|
protected function allowedTCPDFtag($method) {
|
||||||
|
if (defined('K_ALLOWED_TCPDF_TAGS')) {
|
||||||
|
return (strpos(K_ALLOWED_TCPDF_TAGS, '|'.$method.'|') !== false);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints a cell (rectangular area) with optional borders, background color and html text string.
|
* Prints a cell (rectangular area) with optional borders, background color and html text string.
|
||||||
* The upper-left corner of the cell corresponds to the current position. After the call, the current position moves to the right or to the next line.<br />
|
* The upper-left corner of the cell corresponds to the current position. After the call, the current position moves to the right or to the next line.<br />
|
||||||
|
@ -17248,8 +17291,7 @@ class TCPDF {
|
||||||
* @param float|null $y upper-left corner Y coordinate
|
* @param float|null $y upper-left corner Y coordinate
|
||||||
* @param string $html html text to print. Default value: empty string.
|
* @param string $html html text to print. Default value: empty string.
|
||||||
* @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:<ul><li>0: no border (default)</li><li>1: frame</li></ul> or a string containing some or all of the following characters (in any order):<ul><li>L: left</li><li>T: top</li><li>R: right</li><li>B: bottom</li></ul> or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
|
* @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:<ul><li>0: no border (default)</li><li>1: frame</li></ul> or a string containing some or all of the following characters (in any order):<ul><li>L: left</li><li>T: top</li><li>R: right</li><li>B: bottom</li></ul> or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
|
||||||
* @param int $ln Indicates where the current position should go after the call. Possible values are:<ul><li>0: to the right (or left for RTL language)</li><li>1: to the beginning of the next line</li><li>2: below</li></ul>
|
* @param int $ln Indicates where the current position should go after the call. Possible values are:<ul><li>0: to the right (or left for RTL language)</li><li>1: to the beginning of the next line</li><li>2: below</li></ul> Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
|
||||||
Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: 0.
|
|
||||||
* @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
|
* @param boolean $fill Indicates if the cell background must be painted (true) or transparent (false).
|
||||||
* @param boolean $reseth if true reset the last cell height (default true).
|
* @param boolean $reseth if true reset the last cell height (default true).
|
||||||
* @param string $align Allows to center or align the text. Possible values are:<ul><li>L : left align</li><li>C : center</li><li>R : right align</li><li>'' : empty string : left for LTR or right for RTL</li></ul>
|
* @param string $align Allows to center or align the text. Possible values are:<ul><li>L : left align</li><li>C : center</li><li>R : right align</li><li>'' : empty string : left for LTR or right for RTL</li></ul>
|
||||||
|
@ -19510,17 +19552,14 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
case 'tcpdf': {
|
case 'tcpdf': {
|
||||||
if (defined('K_TCPDF_CALLS_IN_HTML') AND (K_TCPDF_CALLS_IN_HTML === true)) {
|
if (defined('K_TCPDF_CALLS_IN_HTML') AND (K_TCPDF_CALLS_IN_HTML === true)) {
|
||||||
// Special tag used to call TCPDF methods
|
// Special tag used to call TCPDF methods
|
||||||
if (isset($tag['attribute']['method'])) {
|
// This tag is disabled by default by the K_TCPDF_CALLS_IN_HTML constant on TCPDF configuration file.
|
||||||
$tcpdf_method = $tag['attribute']['method'];
|
// Please use this feature only if you are in control of the HTML content and you are sure that it does not contain any harmful code.
|
||||||
if (method_exists($this, $tcpdf_method)) {
|
if (!empty($tag['attribute']['data'])) {
|
||||||
if (isset($tag['attribute']['params']) AND (!empty($tag['attribute']['params']))) {
|
$tcpdf_tag_data = $this->unserializeTCPDFtag($tag['attribute']['data']);
|
||||||
$params = $this->unserializeTCPDFtagParameters($tag['attribute']['params']);
|
if ($this->allowedTCPDFtag($tcpdf_tag_data['m'])) {
|
||||||
call_user_func_array(array($this, $tcpdf_method), $params);
|
call_user_func_array(array($this, $tcpdf_tag_data['m']), $tcpdf_tag_data['p']);
|
||||||
} else {
|
|
||||||
$this->$tcpdf_method();
|
|
||||||
}
|
|
||||||
$this->newline = true;
|
|
||||||
}
|
}
|
||||||
|
$this->newline = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -21867,25 +21906,23 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
* @since 4.5.029 (2009-03-19)
|
* @since 4.5.029 (2009-03-19)
|
||||||
*/
|
*/
|
||||||
public function rollbackTransaction($self=false) {
|
public function rollbackTransaction($self=false) {
|
||||||
if (isset($this->objcopy)) {
|
if (!isset($this->objcopy)) {
|
||||||
$objcopy = $this->objcopy;
|
return $this;
|
||||||
$this->_destroy(true, true);
|
|
||||||
if ($self) {
|
|
||||||
$objvars = get_object_vars($objcopy);
|
|
||||||
foreach ($objvars as $key => $value) {
|
|
||||||
$this->$key = $value;
|
|
||||||
}
|
|
||||||
$objcopy->_destroy(true, true);
|
|
||||||
/* The unique file_id should not be used during cleanup again */
|
|
||||||
$objcopy->file_id = NULL;
|
|
||||||
unset($objcopy);
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
/* The unique file_id should not be used during cleanup again */
|
|
||||||
$this->file_id = NULL;
|
|
||||||
return $objcopy;
|
|
||||||
}
|
}
|
||||||
return $this;
|
$file_id = $this->file_id;
|
||||||
|
$objcopy = $this->objcopy;
|
||||||
|
$this->_destroy(true, true);
|
||||||
|
if ($self) {
|
||||||
|
$objvars = get_object_vars($objcopy);
|
||||||
|
foreach ($objvars as $key => $value) {
|
||||||
|
$this->$key = $value;
|
||||||
|
}
|
||||||
|
$objcopy->_destroy(true, true);
|
||||||
|
unset($objcopy);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
$this->file_id = $file_id;
|
||||||
|
return $objcopy;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- MULTI COLUMNS METHODS -----------------------
|
// --- MULTI COLUMNS METHODS -----------------------
|
||||||
|
|
4
lam/lib/3rdParty/tcpdf/tcpdf_autoconfig.php
vendored
4
lam/lib/3rdParty/tcpdf/tcpdf_autoconfig.php
vendored
|
@ -228,6 +228,10 @@ if (!defined('K_TCPDF_CALLS_IN_HTML')) {
|
||||||
define('K_TCPDF_CALLS_IN_HTML', false);
|
define('K_TCPDF_CALLS_IN_HTML', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!defined('K_ALLOWED_TCPDF_TAGS')) {
|
||||||
|
define('K_ALLOWED_TCPDF_TAGS', '');
|
||||||
|
}
|
||||||
|
|
||||||
if (!defined('K_TCPDF_THROW_EXCEPTION_ERROR')) {
|
if (!defined('K_TCPDF_THROW_EXCEPTION_ERROR')) {
|
||||||
define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
|
define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"bomFormat" : "CycloneDX",
|
"bomFormat" : "CycloneDX",
|
||||||
"specVersion" : "1.5",
|
"specVersion" : "1.5",
|
||||||
"serialNumber" : "urn:uuid:44914833-8fde-4146-9c13-c8457f2a694e",
|
"serialNumber" : "urn:uuid:49f02510-fe68-4816-a9a1-c5a80f752868",
|
||||||
"version" : 1,
|
"version" : 1,
|
||||||
"metadata" : {
|
"metadata" : {
|
||||||
"timestamp" : "2024-02-20T06:26:06Z",
|
"timestamp" : "2024-06-05T18:11:18Z",
|
||||||
"tools" : [
|
"tools" : [
|
||||||
{
|
{
|
||||||
"vendor" : "OWASP",
|
"vendor" : "OWASP",
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
{
|
{
|
||||||
"group" : "cdx:npm:package:bundled",
|
"group" : "cdx:npm:package:bundled",
|
||||||
"name" : "jodit",
|
"name" : "jodit",
|
||||||
"version" : "4.0.6",
|
"version" : "4.2.24",
|
||||||
"licenses" : [
|
"licenses" : [
|
||||||
{
|
{
|
||||||
"license" : {
|
"license" : {
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"purl" : "pkg:npm/jodit@4.0.6",
|
"purl" : "pkg:npm/jodit@4.2.24",
|
||||||
"type" : "library",
|
"type" : "library",
|
||||||
"bom-ref" : "b5831dd1-9cc8-4af8-9c56-2511e92b9f7e"
|
"bom-ref" : "b5831dd1-9cc8-4af8-9c56-2511e92b9f7e"
|
||||||
},
|
},
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
{
|
{
|
||||||
"group" : "cdx:composer:package",
|
"group" : "cdx:composer:package",
|
||||||
"name" : "tecnickcom/tcpdf",
|
"name" : "tecnickcom/tcpdf",
|
||||||
"version" : "6.6.5",
|
"version" : "6.7.5",
|
||||||
"licenses" : [
|
"licenses" : [
|
||||||
{
|
{
|
||||||
"license" : {
|
"license" : {
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"purl" : "pkg:composer/tecnickcom/tcpdf@6.6.5",
|
"purl" : "pkg:composer/tecnickcom/tcpdf@6.7.5",
|
||||||
"type" : "library",
|
"type" : "library",
|
||||||
"bom-ref" : "72240acd-7de4-4058-b56f-e64638babcbf"
|
"bom-ref" : "72240acd-7de4-4058-b56f-e64638babcbf"
|
||||||
},
|
},
|
||||||
|
|
1300
lam/sbom.json
1300
lam/sbom.json
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue