Skip to content

Commit

Permalink
Add back the original check to the patch
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRLangley committed Feb 2, 2024
1 parent 8fd3521 commit 8887c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ private function openFont($font)
$width = floatval($dtmp['WX']);

if ($c >= 0) {
if (ctype_xdigit($c) && ctype_xdigit($n)) {
if (ctype_xdigit($c) && ctype_xdigit($n) && $c != hexdec($n)) {
$data['codeToName'][$c] = $n;
}
$data['C'][$c] = $width;
Expand Down

0 comments on commit 8887c7a

Please sign in to comment.