From d8e6ea364629871aa37242256bd1a2444b9cedae Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 16 Jul 2020 08:26:20 +0700 Subject: [PATCH] ensure use mb_strpos() for scan text to always get correct result --- system/Test/DOMParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Test/DOMParser.php b/system/Test/DOMParser.php index a6164e54325f..95b889693757 100644 --- a/system/Test/DOMParser.php +++ b/system/Test/DOMParser.php @@ -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);