Skip to content

Commit

Permalink
Internal link to named destination does not require conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-vipo committed Dec 19, 2024
1 parent 7956f5e commit fdecefa
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 @@ -19124,7 +19124,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 fdecefa

Please sign in to comment.