Skip to content

Commit

Permalink
bug fixed in strpos find
Browse files Browse the repository at this point in the history
  • Loading branch information
pejman-hkh committed Feb 14, 2024
1 parent de7ffc4 commit 010ab18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ function parseComment( &$tag ) {

$pos = strpos( $this->html, '-', $start );
if( ! $pos ) {
$pos = $this->length;
$this->i = $this->length;
break;
}

$len = $pos-$base;
Expand Down Expand Up @@ -261,7 +262,8 @@ function parseScriptInner() {

$pos = strpos( $this->html, '<', $start );
if( ! $pos ) {
$pos = $this->length;
$this->i = $this->length;
break;
}

$len = $pos-$base;
Expand Down

0 comments on commit 010ab18

Please sign in to comment.