Skip to content

Commit

Permalink
php 7 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
secure-77 committed Apr 29, 2023
1 parent 3840afb commit 066034a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion perlite/PerliteParsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ protected function inlineTag($Excerpt)
}

# ignore tags in links
if (str_ends_with($Excerpt['context'], ']')) {
$len = strlen($Excerpt['context']);
if ($len == 0) {
return;
}
if (substr($Excerpt['context'],-$len) === ']') {
return;
}

Expand Down

0 comments on commit 066034a

Please sign in to comment.