mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Patch for issue #2499
This commit is contained in:
@@ -4161,9 +4161,9 @@ class e_parser
|
|||||||
*/
|
*/
|
||||||
public function isUTF8($string)
|
public function isUTF8($string)
|
||||||
{
|
{
|
||||||
if (function_exists('mb_detect_encoding'))
|
if (function_exists('mb_check_encoding'))
|
||||||
{
|
{
|
||||||
return (mb_detect_encoding($string) == "UTF-8");
|
return (mb_check_encoding($string, 'UTF-8'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (bool) preg_match('%(?:
|
return (bool) preg_match('%(?:
|
||||||
|
Reference in New Issue
Block a user