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 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()); 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;