Skip to content

Commit

Permalink
ensure use mb_strpos() for scan text to always get correct result
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 16, 2020
1 parent 5bfa4c7 commit d8e6ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Test/DOMParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function see(string $search = null, string $element = null): bool
if (is_null($element))
{
$content = $this->dom->saveHTML($this->dom->documentElement);
return strpos($content, $search) !== false;
return mb_strpos($content, $search) !== false;
}

$result = $this->doXPath($search, $element);
Expand Down

0 comments on commit d8e6ea3

Please sign in to comment.