Skip to content

Commit d8e6ea3

Browse files
committed
ensure use mb_strpos() for scan text to always get correct result
1 parent 5bfa4c7 commit d8e6ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Test/DOMParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function see(string $search = null, string $element = null): bool
143143
if (is_null($element))
144144
{
145145
$content = $this->dom->saveHTML($this->dom->documentElement);
146-
return strpos($content, $search) !== false;
146+
return mb_strpos($content, $search) !== false;
147147
}
148148

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

0 commit comments

Comments
 (0)