Skip to content

Commit

Permalink
Merge branch 'main' into sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Dec 23, 2024
2 parents c9f41cb + fdecefa commit ebfc0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -19125,7 +19125,7 @@ protected function openHTMLTagHandler($dom, $key, $cell) {
$imglink = '';
if (isset($this->HREF['url']) AND !TCPDF_STATIC::empty_string($this->HREF['url'])) {
$imglink = $this->HREF['url'];
if ($imglink[0] == '#') {
if ($imglink[0] == '#' AND is_numeric($imglink[1])) {
// convert url to internal link
$lnkdata = explode(',', $imglink);
if (isset($lnkdata[0])) {
Expand Down

0 comments on commit ebfc0b8

Please sign in to comment.