Skip to content

Commit c14219a

Browse files
committed
Merge branch 'roben'
2 parents a63f81e + 58289ee commit c14219a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tcpdf.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23730,9 +23730,9 @@ protected function SVGPath($d, $style='') {
2373023730
}
2373123731
$params = array();
2373223732
if (isset($val[2])) {
23733-
// get curve parameters
23734-
preg_match_all('/-?\d*\.?\d+/', trim($val[2]), $matches);
23735-
$rawparams = $matches[0];
23733+
// get curve parameters, see https://github.com/tecnickcom/TCPDF/issues/767
23734+
$rawparams = preg_split('/([\,\s]+)/si', trim($val[2]));
23735+
$rawparams = array_filter($rawparams, fn ($p) => trim($p) != '');
2373623736
$params = array();
2373723737
foreach ($rawparams as $ck => $cp) {
2373823738
$params[$ck] = $this->getHTMLUnitToUnits($cp, 0, $this->svgunit, false);

0 commit comments

Comments
 (0)