From c2c62581a959760c1902dc3694783a915d781e7b Mon Sep 17 00:00:00 2001 From: svfcode Date: Thu, 29 Feb 2024 05:22:43 +0300 Subject: [PATCH 1/3] update version. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e01ba1c..e66be6e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ php-uni ======= [![Build Status](https://travis-ci.org/CleanTalk/php-uni.svg)](https://travis-ci.org/CleanTalk/php-uni) -# Version 2.7.1 +# Version 2.7.2 Module for any CMS ## Installation From 845fb4bd32b2ab8e3d6d2759d4df6efd1c324b66 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Aug 2024 11:59:38 +0700 Subject: [PATCH 2/3] Update version 2.8.0 --- cleantalk/inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleantalk/inc/common.php b/cleantalk/inc/common.php index 2fac069..24e7545 100644 --- a/cleantalk/inc/common.php +++ b/cleantalk/inc/common.php @@ -4,7 +4,7 @@ use Cleantalk\Variables\Server; define('APBCT_PLUGIN', 'uni'); -define('APBCT_VERSION', '2.7.2'); +define('APBCT_VERSION', '2.8.0'); define('APBCT_AGENT', APBCT_PLUGIN . '-' . str_replace( '.', '', APBCT_VERSION ) ); define('APBCT_USER_AGENT', 'Cleantalk-Antispam-Universal-Plugin/' . APBCT_VERSION); define('APBCT_INITIAL_INCLUDE_PATH', get_include_path()); From a64a5201bf43ef0d961fa645ca36676d8c6778d3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 28 Aug 2024 19:38:55 +0700 Subject: [PATCH 3/3] Fix. ConvertUTF8. Editing the regex pattern --- cleantalk/lib/Cleantalk/Common/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleantalk/lib/Cleantalk/Common/Helper.php b/cleantalk/lib/Cleantalk/Common/Helper.php index c580388..81402b8 100644 --- a/cleantalk/lib/Cleantalk/Common/Helper.php +++ b/cleantalk/lib/Cleantalk/Common/Helper.php @@ -817,7 +817,7 @@ public static function fromUTF8($obj, $data_codepage = null) //String }else{ - if(preg_match('u', $obj) && function_exists('mb_convert_encoding') && $data_codepage !== null) + if(preg_match('/u/', $obj) && function_exists('mb_convert_encoding') && $data_codepage !== null) $obj = mb_convert_encoding($obj, $data_codepage, 'UTF-8'); } return $obj;