Fix: upgrade tcpdf with some fix
This commit is contained in:
parent
cd1d5a11f8
commit
a4ae2ca8b6
@ -45,8 +45,13 @@ public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=
|
|||||||
by
|
by
|
||||||
public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=false, $maxh=0, $valign='T', $fitcell=false) {
|
public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=false, $maxh=0, $valign='T', $fitcell=false) {
|
||||||
|
|
||||||
* Open tcpdf.php and find function getRandomSeed()
|
* Open /tcpdf/config/tcpdf_config.php and add this function :
|
||||||
in this function change "getmypid()" by "mt_rand()"
|
|
||||||
|
if (! function_exists('getmypid')) {
|
||||||
|
function getmypid() {
|
||||||
|
return rand(1,32768);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
JSGANTT:
|
JSGANTT:
|
||||||
|
|||||||
@ -26,6 +26,14 @@
|
|||||||
* @since 2004-10-27
|
* @since 2004-10-27
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// DOLCHANGE RH
|
||||||
|
if (! function_exists('getmypid')) {
|
||||||
|
function getmypid() {
|
||||||
|
return rand(1,32768);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// END DOLCHANGE
|
||||||
|
|
||||||
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
|
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
|
||||||
|
|
||||||
if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
|
if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
|
||||||
|
|||||||
@ -12089,10 +12089,7 @@ class TCPDF {
|
|||||||
}
|
}
|
||||||
$seed .= uniqid('', true);
|
$seed .= uniqid('', true);
|
||||||
$seed .= rand();
|
$seed .= rand();
|
||||||
// DOLCHANGE RH
|
$seed .= getmypid();
|
||||||
//$seed .= getmypid();
|
|
||||||
$seed .= mt_rand();
|
|
||||||
// END DOLCHANGE
|
|
||||||
$seed .= __FILE__;
|
$seed .= __FILE__;
|
||||||
$seed .= $this->bufferlen;
|
$seed .= $this->bufferlen;
|
||||||
if (isset($_SERVER['REMOTE_ADDR'])) {
|
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user