mirror of
https://github.com/tecnickcom/TCPDF.git
synced 2025-04-21 14:31:58 +02:00
fix control for all PHP versions
This commit is contained in:
parent
bfa7d2b6d4
commit
4cf1ab192e
@ -19059,7 +19059,7 @@ class TCPDF {
|
||||
} else if (preg_match('@^data:image/([^;]*);base64,(.*)@', $imgsrc, $reg)) {
|
||||
$imgsrc = '@'.base64_decode($reg[2]);
|
||||
$type = $reg[1];
|
||||
} elseif (str_contains($imgsrc, '../')) {
|
||||
} elseif (strpos($imgsrc, '../') !== false) {
|
||||
// accessing parent folders is not allowed
|
||||
break;
|
||||
} elseif ( $this->allowLocalFiles && substr($imgsrc, 0, 7) === 'file://') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user